Menu list Order API Goods API Services API(Not open)
{{nowTitle}}
  • {{ site.url }}

    {{ site.name }}

{{showUrl}} ( {{showName}} )
{{docHint}}

API Description

This open platform is developed based on the HTTP protocol. Users only need to assemble the correct URL and parameters according to the development specifications, and the request can be successful.


Signature generation rule

Public parameter:

'app_key' =>'123456',
'timestamp' =>'2018-07-09 12:00:00',
'format' => 'json',
'version' => '1.0',
'sign_method' =>'md5',
'method'=>'item.get'
'sign'=>'C0BD3A60A742F25972F594A974BDBA92'

Business parameter:

'item_id'=>123

The first step is to combine the public parameters with the business parameters and sort them in ASCII order:

'app_key' =>'',
'format' => 'json',
'method'=>'item.get'
'item_id'=>123
'sign_method' =>'md5',
'timestamp' =>'2018-07-09 12:00:00', 
'version' => '1.0',

The second step is to stitch the string in the form of key-value.

app_keyformatjson.....v1.0

In the third step, the allocated app_secret is stitched at the front and the back of the string, and then MD5 encryption is performed.

md5($app_secret.'app_keyformatjson.....v1.0'.$app_secret)

In the fourth step, the byte stream result obtained by the digest is expressed in hexadecimal and converted to uppercase.

eg. C0BD3A60A742F25972F594A974BDBA92

Tips: MD5 is a 128-bit length digest algorithm, expressed in hexadecimal. A hexadecimal character can represent 4 digits, so the length of the signed character is fixed to 32 hexadecimal characters.

The fifth step is to assemble the HTTP request.

All parameter names and parameter values are URL encoded using utf-8. Public parameters are passed through the get request, and the business parameters are passed through POST. Initiate a request

1.Authorization flow chart

流程图

2.Login Toonies(No account,Please register)

3.Log in to the developer platform and enter the console

4.The console will show if there has been an app created, and if so, the app information will be displayed.

5.If not, skip to creating the app

6.After creation, you need to wait for the toonies staff to review, apply for information, pass the app information, and interface docking.

7.After creation, you need to wait for the toonies staff to review, apply for information, return to the creation page if you don`t pass, you need to re-create the app.

{{item.title}}
{{list.title}}
{{ths}}
{{tds}}
{{item.htmls}}