{"metadata":{"image":[],"title":"","description":""},"api":{"url":"/socket/token","auth":"required","results":{"codes":[{"name":"","code":"{\n \"socket_token\":\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ\"\n}","language":"json","status":200}]},"settings":"","params":[],"examples":{"codes":[{"language":"php","code":"<?php\n\n$client = new GuzzleHttp\\Client();\n\ntry {\n\n  $response = $client->get('https://streamlabs.com/api/v1.0/socket/token', [\n    'query' => [\n      'access_token' \t=> 'ACCESS_TOKEN_HERE'\n    ]\n\t]);\n\n  $result = $response->json();\n\n} catch (Exception $e) {\n\n  //failed\n  $result = $e->getResponse()->json();\n\n}"}]},"method":"get"},"next":{"description":"","pages":[]},"title":"/socket/token","type":"endpoint","slug":"sockettoken","excerpt":"Allows you to obtain a token which can be used to listen to user's event through sockets","body":"[block:callout]\n{\n  \"type\": \"warning\",\n  \"title\": \"Required Scope\",\n  \"body\": \"socket.token\"\n}\n[/block]","updates":[],"order":0,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"599b5120d6383b0039d7faaa","project":"55baca9cd0736b3100bf1008","version":{"version":"1.0","version_clean":"1.0.0","codename":"","is_stable":true,"is_beta":true,"is_hidden":false,"is_deprecated":false,"categories":["55baca9dd0736b3100bf100c","55bacba0d0736b3100bf1017","55bad8f33f0767230008f517","55baf3f01b0d66370078166e","55baf4151b0d66370078166f","55f1cca35fe76419007dc794","573e2d6e610a090e00ca2b97","58d97ce57718211b0028e6bc","599b510cb683b50031a35299","5a871c493948fd004697e677"],"_id":"55baca9cd0736b3100bf100b","createdAt":"2015-07-31T01:08:44.540Z","project":"55baca9cd0736b3100bf1008","__v":10,"releaseDate":"2015-07-31T01:08:44.540Z"},"category":{"sync":{"isSync":false,"url":""},"pages":[],"title":"Sockets","slug":"sockets","order":5,"from_sync":false,"reference":false,"_id":"599b510cb683b50031a35299","project":"55baca9cd0736b3100bf1008","version":"55baca9cd0736b3100bf100b","createdAt":"2017-08-21T21:30:52.713Z","__v":0},"user":"58c9ded6c108331b00c1fee4","createdAt":"2017-08-21T21:31:12.730Z","githubsync":"","__v":0,"parentDoc":null}

get/socket/token

Allows you to obtain a token which can be used to listen to user's event through sockets

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format


Documentation

[block:callout] { "type": "warning", "title": "Required Scope", "body": "socket.token" } [/block]