Live Content - Android SDK

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() {
            @Override
            public void onReceive(String response) {
                // deal with the response
            }
        });

Blueshift
        .getInstance(context)
        .getLiveContentByCustomerId(slotName, new LiveContentCallback() {
            @Override
            public void onReceive(String response) {
                // deal with the response
            }
        });

Blueshift
        .getInstance(context)
        .getLiveContentByDeviceId(slotName, new LiveContentCallback() {
            @Override
            public void onReceive(String response) {
                // deal with the response
            }
        });
Was this article helpful?
0 out of 0 found this helpful