TGDSO Licenses

REDESIGN PENDING

Match to 10quality License API Calls.

TGDSO Licenses

TGDSO License Management – A License is a unique string that’s allocated with a digital product at the time of order. Whilst the same file will be downloadable for each order, a different license is issued. This makes it perfect for allocating software license keys, codes for redeeming some purchase or any other thing that requires a unique string to be issued with each order.

Instead, to check license data in your software perform a call to your own server, which should in turn make a call to the TGDSO API to check license validity. This ensures only your server has details of your API key/secret. Order name/email can also be checked for additional security by checking the order associated with the license.

IMPORTANT – Do not include calls to this API endpoint in your software. Whilst this will enable you to check license validity directly, it will expose your API key and secret to anyone examining your source code or watching wire data. With your API key and secret somebody could access your order history, remove your products… in short anything this API allows.


GET

Returns either one or multiple Licenses, depending on the parameters passed in.

Request

JSON-RPCParametersRequiredDatatypeDescription
{"jsonrpc":"2.0",    
"method":"License_GET",    
"params":{    
 "signature":"6e73861fd2d75a76e54b472e609eaf98",xhashPrevious Signed Authentication Token issued by TGDSO Contest Server.
 "key":["",""]xint stringThe license key itself
},    
"id": 2}    

Response

JSON-RPCParametersRequiredDatatypeDescription
{"jsonrpc":"2.0",    
"result":{    
 "id":"6e73861fd2d75a76e54b472e609eaf98",xhashThe product id.
 "order_id":0,x The order the license has been assigned too (if one).
 "order_refunded":1,xboolRefunded state of the order, true or false.
 "key":["AY3C-7C9E-5656-J2MA","AY3D-2323-BC3E-J3MA"]xsting arrThe license key or keys
},    
"id": 4}    
JSON-RPCParametersRequiredDatatypeDescription
{"jsonrpc":"2.0",    
"result":{    
 "failure":1xintegerFailure Code 1: Authentication Failed. Incorrect Username/Password Combination.
},    
"id": 4}    

VALIDATE

Validate License.

Request

JSON-RPCParametersRequiredDatatypeDescription
{"jsonrpc":"2.0",    
"method":"License_VALIDATE",   Service Transaction Method.
"params":{    
 "signature":"6e73861fd2d75a76e54b472e609eaf98",xhashPrevious Signed Authentication Token issued by TGDSO Contest Server.
 "key":["AY3C-7C9E-5656-J2MA","AY3D-2323-BC3E-J3MA"]xintegerThe license key or keys to Validate
},    
"id": 4}    

Response

JSON-RPCParametersRequiredDatatypeDescription
{"jsonrpc":"2.0",    
"result": {    
 "invalid_key":["AY3C-7C9E-5656-J2MA"]xhashInvalid license Keys.
},    
"id": 4}    
JSON-RPCParametersRequiredDatatypeDescription
{"jsonrpc":"2.0",    
"result":{    
 "failure":1xintegerFailure Code 1: Authentication Failed. Incorrect Username/Password Combination.
},    
"id": 4}    

Submit a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Pin It on Pinterest