PHP code example of sr-expert / ypersdk-php

1. Go to this page and download the library: Download sr-expert/ypersdk-php library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

sr-expert / ypersdk-php example snippets

 bash
$ composer 
 php
pi=new Yper\SDK\ApiClient(
               "base_url",
               "client_id",
               "client_secret",
               "scope",
               "grant_type",
               "pro_id",
               "pro_secret_token",
               "retail_point_id"
    );
$sevice = new Yper\SDK\Service\Retailpoint($api);
$result = $sevice->getMissionTemplates();
print_r($result);

#for other service you can use 

$sevice = new Yper\SDK\Service\xxx($api);

#if path or methode not in service you ca use directly 

$api->requestApi("GET|POST", $path, paramGet = array(), $paramPost = array());