Our OpenAPI Guideline

  1. If you have their own system or mobile app and would like to expand relevant GPS function. You can use our Open API to get the data and interact with the device.
  2. If you are using traxbean platform, you can contact our sales manager to get your API key.
  3.    You also can login to the traxbean platform to get the API key by yourself, please see the screenshot below:

  1. Security of the API. Before your application call the API, you will need to get authorization from our security server and all the data and transfer will be encrypted. Please see the API data follow:
  2. Start to use the API.
  • Please get the API document here:

http://openapi.traxbean.com/help

  • Step 1: you will need to use your appid, appkey and password to get the token.
http://openapi.traxbean.com/api/token/get_token?appid=?&Timestamp=?&Password=?

Appid: you will get from the system, for example 138

Timestamp: current time stamp, for example 1562389430

Password: MD5(AppKey+AppID+timestamp) , appkey will be all capital. For example
MD5(3ECBEF93-A61A-4710-9AFB-522A17FEF5AA1381562389430)

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&timestamp=1562389430“);

You will get the token and user id=385

eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJMb2dpbkluZm8iOnsiVXNlcklkIjozODUsIlVzZXJUeXBlIjowLCJBcHBJZCI6MTM4LCJMb2dpbk5hbWUiOiJhZG1pbiIsIlRpbWVPZmZzZXQiOjguMH0sImV4cCI6MTU2MjQwMDAxOS4wfQ._CX1eAtxasMHXojCUNxzvEerlzUi9ofprnJ7bRjk4Jo

Token will expired in 7200 seconds. Every time you request data, the token expire time will be updated to 7200 seconds.

  • Step 2 : after you get token, you can start to use the token to access other API to get data.
http://openapi.traxbean.com/api/devicelist/get_devicelist?AccessToken=?&userid=?&MapType=?

AccessToken: The token from the step 1

Userid: the userid from the step 1

Maptype: google or baidu

C# Code example:

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“);

Token will expired in 7200 seconds. Every time you request data, the token expire time will be updated to 7200 seconds.

  • Step 3 : You can call other API by the same method.
  • For your online testing, this is the online MD5 app to generate the password.