This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# * Authorization header value should be in the format of "Bearer xxx" where xxx is access token returned | |
# from a previous GET https://api.telstra.com/v1/oauth/token request. | |
UID="9999999999" | |
TOKEN="<access_token>" | |
curl -H "Authorization: Bearer $TOKEN" \ | |
"https://api.telstra.com/v1/subscriber-profile/uids/$UID" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# * Authorization header value should be in the format of "Bearer xxx" where xxx is access token returned | |
# from a previous GET https://api.telstra.com/v1/oauth/token request. | |
MSISDN="61400000000" | |
TOKEN="<access_token>" | |
curl -H "Authorization: Bearer $TOKEN" \ | |
"https://api.telstra.com/v1/subscriber-profile/msisdns/$MSISDN" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Obtain these keys from the Telstra Developer Portal | |
CONSUMER_KEY="your consumer key" | |
CONSUMER_SECRET="your consumer secret" | |
curl -X POST \ | |
-H "Accept: application/json" \ | |
-d "client_id=$CONSUMER_KEY&client_secret=$CONSUMER_SECRET&grant_type=client_credentials&scope=SUBSCRIBERPROFILE" \ | |
"https://api.telstra.com/v1/oauth/token" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"code": 4011, | |
"status": 400, | |
"message": "Invalid Msisdn, Please provide a valid Msisdn", | |
"errors": [{ | |
"code": 4011, | |
"message": "Invalid Msisdn, Please provide a valid Msisdn" | |
}] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"code": 4001, | |
"status": 400, | |
"message": "Invalid Msisdn, Please provide a valid UID", | |
"errors": [{ | |
"code": 4001, | |
"message": "Invalid UID, Please provide a valid UID" | |
}] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"status": 200, | |
"data": { | |
"msisdn": "61400000000", | |
"uid": "9999999999", | |
"imsi": "505000000000000", | |
"technology": "3G", | |
"spid": "0002", | |
"paymentType": "postpaid" | |
} |