1. Before your application calls the API, you will need to obtain the authorization of our security server, and all data and transmission will be encrypted. See the following API data
2. Start using API
• The following is the API document:
http://openapi.traxbean.com/help
• The first step is to use appid (157), appkey (2CE066F1-0A8C-43AF-A627-138C17500587), and timestamp to obtain the token
http://openapi.traxbean.com/api/token/get_token?appid=?&Timestamp=?&Password=?
Appid: 157
Timestamp: Timestamp, such as 1562389430
Password: MD5(AppKey+AppID+timestamp) , The appkey will be all uppercase. for example
MD5(2CE066F1-0A8C-43AF-A627-138C175005871562389430)
C# Code example:
var client = new WebClient(); client.Headers.Add("Content-Type", "application/json"); var bt = client.DownloadData("http://openapi.traxbean.com/api/token/get_token?appid=138&password=733c4f17bdc29c24e6a435e95e7926fd×tamp=1562389430");
You can get the token
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJMb2dpbkluZm8iOnsiVXNlcklkIjozODUsIlVzZXJUeXBlIjowLCJBcHBJZCI6MTM4LCJMb2dpbk5hbWUiOiJhZG1pbiIsIlRpbWVPZmZzZXQiOjguMH0sImV4cCI6MTU2MjQwMDAxOS4wfQ._CX1eAtxasMHXojCUNxzvEerlzUi9ofprnJ7bRjk4Jo
Token expires after 7200s
• Step 2 You can use the same method to call other API
http://openapi.traxbean.com/api/devicelist/get_devicelist?AccessToken=?&userid=?&MapType=?
AccessToken: Obtained from the first step
Userid: Obtained from the first step
Maptype: Google or Baidu
C# Code template:
var client = new WebClient(); client.Headers.Add("Content-Type", "application/json"); var bt = client.DownloadData("http://openapi.traxbean.com/api/devicelist/get_devicelist?AccessToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJMb2dpbkluZm8iOnsiVXNlcklkIjozODUsIlVzZXJUeXBlIjowLCJBcHBJZCI6MTM4LCJMb2dpbk5hbWUiOiJhZG1pbiIsIlRpbWVPZmZzZXQiOjguMH0sImV4cCI6MTU2MjM5ODU0OS4wfQ.7CMFlARAFbeSLMeDeyHsG6qKNfqLLFS-XYXxDLcwTGk&userid=385&MapType=google");
• The following is an online test for reference only
3. 试一下