- [Register] (https://apphq.shephertz.com/register) with App42 platform.
- Create an app once you are on Quick start page after registration.
- If you are already registered, login to [AppHQ] (http://apphq.shephertz.com/register/app42Login) console and create an app from App Manager Tab.
Download And Set Up SDK :-
1). [Download] (https://github.com/shephertz/App42_PHP_SDK/archive/master.zip) PHP SDK
2). Unzip downloaded Zip file. Unzip folder contains version folder of source code and sample folder.
3). Version folder will contain source code file.
4). Include all these source code file in your project.
5). Build and Run.
Initializing SDK :- You have to instantiate App42API by putting your ApiKey/SecretKey to initialize the SDK.
Using App42 Services :- you have to build target service that you want to use in your app. For example, User Service can be build with following snippet. Similarly you can build other service also with same notation.
$userService = App42API::buildUserService(); //Similarly you can build other services like App42API::buildXXXXService()
For curl settings:
i. Open php.ini and search with keyword "curl". ii. Remove ";" before extension=php_curl.dll