How to Get-MSISDN for HTTPS
Partners use API Get Token to get access from the system via Client (web browser on mobile). Partner can use javascript to call this api System save MSISDN and Access token to data store.System response the token to partner When the Partner has received the Token from the Client Side, send it to his own server. Server Side Call API getInsertion and send the token too. System response MSISDN to partner
API Specification
URL for access from mobile (Get-Token) : https://minsert.truecorp.co.th/webapi/ URL for query msisdn from app-server (Query Token) : https://insertion.truecorp.co.th UpdateMobile Request
Direction: MobileApp to Insertion System
Method: POST
Request
Example: parameter
Body:
<UpdateMobileRequest>
<uuid>987654321abcdef</uuid>
</UpdateMobileRequest>
Response
Example: parameter of Success case
Body:
<UpdateMobileResponse>
<result status="OK" >
<reason-code>0</reason-code>
<message>Operation Successful</message>
</result>
<token-id>8ea6093fc01a459e</token-id>
</UpdateMobilResponse>
Reason Codes
GetInsertion Request
Direction: AppServer to Insertion System
Method: POST
HTTP Header:Authentication : Basic Authentication
Request
Example: parameter
Header:
Authorization: Basic QWxhZGRpbjpPcGVuU2VzYW1l
Body:
<GetInsertionRequest>
<token-id>987654321abcdef</token-id>
<x-params>X-msisdn</x-params>
</GetInsertionRequest>
Response
Example:parameter of Success case
Body:
<GetInsertionResponse>
<result status="OK" >
<reason-code>0</reason-code>
<message>Operation Successful</message>
</result>
<X-msisdn>66809779966</X-msisdn>
</GetInsertionResponse>
Reason Codes