Skip to content
On this page

Make URL Sign

The URL signature parameter is the complete API Headers information, and the sign parameter of Headers is consistent with the API generation rules.

URL Sign Data

json
{
    "platformId": 4,
    "version": "2.0.0",
    "appId": "TDh15qYay3x0sARo",
    "timestamp": 1656653400000,
    "sign": "d5db4371a0c2d7e17009dea8d53ecf15a7ec07b9", // Signature generation rules are consistent with api headers
    "langTag": "zh-Hans", // You can leave it blank or pass no parameters
    "timezone": "+8", // You can leave it blank or pass no parameters
    "aid": "6a3bb3bc",
    "aidToken": "uoX1hk6SHUgB2MFGJwNx38dem9DA7Vsz",
    "uid": 782622,
    "uidToken": "PqBpwPLJgfd1sH0X5JffYFGxTSc8RW7c",
    "deviceInfo": {}
}

URL Sign Values

  1. Compressing sign data
json
{"platformId":4,"version":"1.0.0","appId":"qe12345","timestamp":1626426833,"sign":"d5db4371a0c2d7e17009dea8d53ecf15a7ec07b9","langTag":"zh-Hans","timezone":"+8","aid":"6a3bb3bc","aidToken": "uoX1hk6SHUgB2MFGJwNx38dem9DA7Vsz","uid":782622,"uidToken": "PqBpwPLJgfd1sH0X5JffYFGxTSc8RW7c","deviceInfo":""}
  1. Encode the compressed data in Base64
eyJwbGF0Zm9ybUlkIjo0LCJ2ZXJzaW9uIjoiMS4wLjAiLCJhcHBJZCI6InFlMTIzNDUiLCJ0aW1lc3RhbXAiOjE2MjY0MjY4MzMsInNpZ24iOiJkNWRiNDM3MWEwYzJkN2UxNzAwOWRlYThkNTNlY2YxNWE3ZWMwN2I5IiwibGFuZ1RhZyI6InpoLUhhbnMiLCJ0aW1lem9uZSI6Iis4IiwiYWlkIjoiNmEzYmIzYmMiLCJhaWRUb2tlbiI6ICJ1b1gxaGs2U0hVZ0IyTUZHSndOeDM4ZGVtOURBN1ZzeiIsInVpZCI6NzgyNjIyLCJ1aWRUb2tlbiI6ICJQcUJwd1BMSmdmZDFzSDBYNUpmZllGR3hUU2M4Ulc3YyIsImRldmljZUluZm8iOiIifQ==
  1. Base64-encoded data is then encoded as a URL
eyJwbGF0Zm9ybUlkIjo0LCJ2ZXJzaW9uIjoiMS4wLjAiLCJhcHBJZCI6InFlMTIzNDUiLCJ0aW1lc3RhbXAiOjE2MjY0MjY4MzMsInNpZ24iOiJkNWRiNDM3MWEwYzJkN2UxNzAwOWRlYThkNTNlY2YxNWE3ZWMwN2I5IiwibGFuZ1RhZyI6InpoLUhhbnMiLCJ0aW1lem9uZSI6Iis4IiwiYWlkIjoiNmEzYmIzYmMiLCJhaWRUb2tlbiI6ICJ1b1gxaGs2U0hVZ0IyTUZHSndOeDM4ZGVtOURBN1ZzeiIsInVpZCI6NzgyNjIyLCJ1aWRUb2tlbiI6ICJQcUJwd1BMSmdmZDFzSDBYNUpmZllGR3hUU2M4Ulc3YyIsImRldmljZUluZm8iOiIifQ%3D%3D

The value after Base64 and URL encoding is the plugin URL sign value.

Released under the Apache-2.0 License