PHP code example of live4tv / stream-network-api-client-php-sdk
1. Go to this page and download the library: Download live4tv/stream-network-api-client-php-sdk 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/ */
live4tv / stream-network-api-client-php-sdk example snippets
apiInstance = new StreamNetworkApi\Api\AccountsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$x_api_key = 'x_api_key_example'; // string
$user_external_id = [email protected]; // string | The user's unique identifier on your system. The same of you use to authorise-url endpoint.
$uuid = 21d6ac22-cf0c-42d2-8aa9-95e71ec32c2b; // string | The reference to the new account that you can use to identify the account. The same of you use to authorise-url endpoint
try {
$result = $apiInstance->socialNetworkAccountControllerGetAccount($x_api_key, $user_external_id, $uuid);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AccountsApi->socialNetworkAccountControllerGetAccount: ', $e->getMessage(), PHP_EOL;
}