Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

{
"swagger": "2.0",
"info": {
"title": "Authorised Actions API",
"description": "This API will be delivered by FOSS Phase 2 Stage 1 (but is intended for re-use by FOSS Phase 2 Stage 2 and also by non-Foxtel projects). Note that error handling is only partially covered in this document and needs to be extended by the feature team.",
"version": "1.0.0"
},
"schemes": [
"https"
],
HTTP/1.1 200 OK
Content-Type: application/json
Cache-Control: no-store
Pragma: no-cache
{
"access_token": "R7AE22bjvGHS22YkE5QVIB6gYS32",
"token_type": "Bearer",
"refresh_token": "r5hjTK5Fo58Fdlw9kr94zkKekdm",
"expires_in": 3600
}
Request:
/my/authorised-actions?service-id=0431941000,0431941001
Response:
{
"data":[
{
"action":"readonly",
"target":{
"type":"service",
https://api.telstra.com/v1/sso/auth?response_type=id_token%20token&client_id=YOUR_CONSUMER_KEY&redirect_uri=YOUR_CALLBACK_URL&scope=openid%20profile&state=kf0yfj7sh9d2ek8nd3uy&nonce=k5Fjy8iR4jUtfj79dUt5
{
"data":[
{
"action":"readonly",
"target":{
"type":"service",
"id":"0431941000"
}
},
{
TOKEN="<access_token>"
SERVICEID="ServiceIds"
curl -H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-d "serviceId=$SERVICEID" \
"https://api.telstra.com/v1/my/authorised-actions"