Here are the steps you need to follow in order to get started with the App42 platform
Add the following libraries:
Insert the following import statement in the Class where you want to use App42 APIs
To use our CampaignAPI, please perform the following steps:
NSLocationWhenInUseUsageDescription : This will be used to obtain or track your location.
Insert the following import statement in the Class where you want to enable Campaign API
You have to instantiate ServiceAPI class and pass your ApiKey/SecretKey to initialize the SDK.
[App42API initializeWithAPIKey:@"<YOUR_API_KEY>" andSecretKey:@"<YOUR_SECRET_KEY>"];
Once you have initialized your SDK with API Key/SecretKey you have to build the target service that you want to use in your App. User Service can be built using the following snippet. Similarly you can build other services with the same notation. Want to know about all the services of App42 Platform? Click Here
//Build User Service UserService *userService = [App42API buildUserService]; // Using userService reference, you should be able to call all its methods like create user/update user/authenticate etc. //Build Storage Service StorageService *storageService = [App42API buildStorageService]; // Using storageService reference, you should be able to call all its methods like insert/save/update/delete etc for JSON objects. //Similarly you can build other services like [App42API buildXXXXService].