App42 Cloud API Client SDK files for PHP
PHP
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
2.5
2.6
docs/html
sample
Change Log.md
README.md

README.md

App42_PHP_SDK

  1. [Register] (https://apphq.shephertz.com/register) with App42 platform.
  2. Create an app once you are on Quick start page after registration.
  3. 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.

App42API::initialize("API_KEY","SECRET_KEY"); 

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