To use the proxy, you need your own private key.
To get it, just go to the Wannabe Games discord server(discord.gg/gxaRgKEzVa) and ask @Wannabe Team for it.
There are two types of tokens in the application.
- Authorization token – A string of 50 characters, received, after making the appropriate request. It must be placed in the header of the request to the api.
Example: 4lTzSnJCHxA0NG1aOjwUL0j0vtGjA7HmqDQP900UrVCpKJntwd
- Transaction token – It consists of 2 identifiers(a transaction type hash and an identifier specifying the organization) and a string of 50 characters.
Example: WANNABE-PY-84Y0aFQJoZ1yI51l19jo45PX5BuTZfcS1VB0X3BmH7a698ivMH
Required headings:
- Authorization -Previously received authorization token.
Common response:
- No authorization token
-
{"status": "error", "responseInfo": "Incorrect token", "method": method,"data": {}}
- Wrong method
-
{"status": "error", "responseInfo": "Method Not Allowed", "method": method,"data": {}})
Overview of response:
- status – indicates whether the achieved stanza is the intended one
- responseInfo – A short description telling what happened, created to make it easier to recognize what went wrong
- method – Tells what method was used to get the request.
- data – The return data.
- userURL – If the next action that should be performed must be performed directly by the user, this field will be displayed in the data array. It contains the link to which the user should be redirected.
- nextAction – if an additional query is required here will be a link to this content. If there is a field data.userURL then the address in this field will be the one that informs about the status of the user’s action.