Live Content - iOS

The SDK has 3 different APIs to fetch live content from the Blueshift server. We need to provide a slot name (ex: Editors_Picks_Json) with the API to get the corresponding content.

Below is sample codes for using the live content API from Blueshift SDK.

  • Objective-C
#import <BlueShift-iOS-SDK/BlueShift.h>

[BlueShiftLiveContent fetchLiveContentByEmail:slotName success:^(NSDictionary *dictionary) {
        // deal with the response dictionary
    } failure:^(NSError *error) {
        // handle error here
    }];

[BlueShiftLiveContent fetchLiveContentByCustomerID:slotName success:^(NSDictionary *dictionary) {
        // deal with the response dictionary
    } failure:^(NSError *error) {
        // handle error here
    }];

[BlueShiftLiveContent fetchLiveContentByDeviceID:slotName success:^(NSDictionary *dictionary) {
        // deal with the response dictionary
    } failure:^(NSError *error) {
        // handle error here
    }];
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request