The SDK provides 3 API methods to fetch live content from the Blueshift servers. We need to provide a slot name (eg: Editors_Picks_Json) and the context to get the corresponding content.
Below is sample codes for using the Live Content API from Blueshift Android SDK.
Blueshift
.getInstance(context)
.getLiveContentByEmail(slotName, new LiveContentCallback() {
public void onReceive(String response) {
// deal with the response
}
});
Blueshift
.getInstance(context)
.getLiveContentByCustomerId(slotName, new LiveContentCallback() {
public void onReceive(String response) {
// deal with the response
}
});
Blueshift
.getInstance(context)
.getLiveContentByDeviceId(slotName, new LiveContentCallback() {
public void onReceive(String response) {
// deal with the response
}
});