cookbook - GetResponse/Android-Developer-Kit GitHub Wiki
Usage
In order to use GetResponse SDK you need to obtain API-KEY from your GetResponse panel.
Initialization
ApiFactory grApi = new ApiFactory(this, apiKey);
// To see background work between your app and our API simply add this:
grApi.debugMode(BuildConfig.DEBUG);
Available methods
You can find all methods in our Sample App.
Just checkout whole repository and make changes in Config class.
Contacts
- Add simple Contact
grApi.getContacts().addSimpleContact(campaignName, name, email, callback);
- Search contacts by email
grApi.getContacts().getContactsByEmail(campaignName, emailQuery, callback)
- Delete contact by ID (which you can retrieve searching for one like in our example app)
grApi.getContacts().deleteContact(contactId, callback);