Docking Process And Test Account
Docking Process
Firstly, all interfaces are required to carry the requested token in the Header.
Therefore, in the first step of the docking process, we need to request the "login" interface to obtain our verification token.
The overall docking process is as follows:
Firstly, when sending text messages, we need to use a prefix signature, which can be added and edited through the interfaces in SMS Sign. We also provide some test signatures that can be queried through the Search Sign interface.
Secondly, the interfaces related to SMS templates are all placed under the "Sms Template" directory, including the interfaces for adding, modifying and querying. You can obtain the test templates that we have already applied for through the query interface.
Finally, after obtaining the signature and the template, we can send text messages through the "Send Message" interface.
For example: [Baidu] You are logging in to the XXX website. The verification code is: 123456.
The 'Baidu' in the example is the signature, the subsequent text part is the SMS template, and '123456' is the variable value that can be passed into the template.
Tip:
If you use the'send message' interface, the verification code will be generated by us and returned to you through the request result. You can also use the'send message by custom code' interface to customize the verification code.
Test Account:
username: admmin
password: admin123