authorizeToken - kewalsk/My-OpenPeriscope GitHub Wiki

Getting authorization token for service

POST https://proxsee.pscp.tv/api/v2/authorizeToken

The getAuthorizationTokenForService is the json API. The parameters are sent in body as json payload:

Request parameters

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

Response

Name Type Description Optional
authorization_token String The authorization token No

Error responses

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

Example

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.

⚠️ **GitHub.com Fallback** ⚠️