get https://streamlabs.com/api/v1.0/socket/token
Allows you to obtain a token which can be used to listen to user's event through sockets
Required Scope
socket.token
Responses
Allows you to obtain a token which can be used to listen to user's event through sockets
Required Scope
socket.token
xxxxxxxxxx
20<?php
​
$client = new GuzzleHttp\Client();
​
try {
​
$response = $client->get('https://streamlabs.com/api/v1.0/socket/token', [
'query' => [
'access_token' => 'ACCESS_TOKEN_HERE'
]
]);
​
$result = $response->json();
​
} catch (Exception $e) {
​
//failed
$result = $e->getResponse()->json();
​
}