Skip to content

skycloudpro/skycloud-SDK

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OFFICIAL PHP SDK FOR sCloud (SKYCLOUD) scloud.live

A simple Lightweight and Powerful SDK-LIBRARY For The Skycloud API - by skycloud https://scloud.live

You will need to create an application name in the scloud Developers dashboard at (https://developers.scloud.live) to use the sCloud SDK and API's

sCloud SDK uses Oauth 2.0 for authorization and to generate access tokens then can be used for API calls.

this sCloud SDK uses no external PHP libraries.

Refer to https://developers.scloud.live/Developer/Documentation/ for more information.

Pull requests are welcome.

The usage is very simple

First declare the class

$sCloud = new sCloud( 'app_key_here', 15,2,0 );

Methods

$sCloud->generateAuthUrl(1);//1=hyperlink, 0=URL String.
$sCloud->API('token');
$sCloud->API('METHOD');



With optional (POST parameters array)

$params=array('example_value1','example_value2');//example values

$sCloud->API('METHOD',$params); //- OPTIONAL PARAMETERS ARRAY

Helper Method

$sCloud->AuthToken();//get authentication token info, expiry, creation date

Full Documentation can be found here https://developers.scloud.live/Developer/Documentation