Installation

For SDK installation, you’ll have to add the SuprSend jar file. You can include the jar using following two ways:

Initialization

For initializing SDK, you need WORKSPACE KEY and WORKSPACE SECRET.

import suprsend.Suprsend;
Suprsend suprsend = new Suprsend("WORKSPACE KEY", "WORKSPACE SECRET");

Replace WORKSPACE KEY and WORKSPACE SECRET with your workspace values. You will get both the tokens from Developers -> API keys section.

Constructor to test SDK in debug mode

Constructor allows you to view HTTP calls to Suprsend in your console. The final parameter is a boolean parameter which denotes whether value for “debug” is true or false. Default value for the same is false.

import suprsend.Suprsend;
Suprsend suprsend = new Suprsend("WORKSPACE KEY", "WORKSPACE SECRET", true);