PHP code example of social-up / api-php

1. Go to this page and download the library: Download social-up/api-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/ */

    

social-up / api-php example snippets


$client  = new \SocialUp\API\Client('YOUR_KEY');

$ping = $client->ping();

$balance = $client->balance()->get();

$data = new \SocialUp\API\Order\Order();
$data->setLink('neymarjr');
$data->setService(39);
$data->setAmount(500);

$order = $client->order()->create($data);

$order = $client->order()->findById(1);