authorizeToken - kewalsk/My-OpenPeriscope GitHub Wiki
POST https://proxsee.pscp.tv/api/v2/authorizeToken
The getAuthorizationTokenForService is the json API. The parameters are sent in body as json payload:
Place | Name | Type | Description | Optional |
---|---|---|---|---|
@Body | cookie | String | The session id (SID) | No |
@Body | service | String | The name of service to get the token, to get the token for channels API must be "channels" | No |
Name | Type | Description | Optional |
---|---|---|---|
authorization_token | String | The authorization token | No |
HTTP Result | HTTP message | Body message | Description |
---|---|---|---|
400 | Bad Request |
{"success":false,"msg":"Bad Request"}
|
The request has some improper arguments, for example SID is wrong |
405 | Method Not Allowed | (empty) | Wrong HTTP method was used, i.e. GET instead of POST |
Sending request:
curl -H "Content-Type: application/json" -d '{"service": "channels", "cookie": "place_your_sid_here"}' https://api.periscope.tv/api/v2/authorizeToken
The result:
{"authorization_token":"***************************************************************************************"}
The authorization_token in this example is replaced by * as this is the sensitive information.
Remember to keep both SID and authorization_token private.