...
Step 2: Every request need contain the HTTP header
Request Headers | ||
---|---|---|
X-WallTeachWallTech-Date | Request sending time | Time format: RFC1123 Format format:EEE, DD MM YYYY HH:MM:SS ZZZ Sample:Thu, 04 Nov 2021 03:39:28 GMT Notice: Greenwich Mean Time (GMT) is Beijing Time (GMT+8) minus 8 hours. |
Authorization | The standard HTTP header carries the authentication signature. | Format: WallTech < Token>: <Base64 Encoded HMAC SHA-1 Hash> Sample:WallTech test5AdbzO5OEeOpvgAVXUFE0A:LhpcUyKXCaGcn3tVPwY4nX44XTA= Explain: <Access Token>: API Token Through the key, such as key=79db9e5OEeOpvgAVXUFWSD, use the SecretKeySpec class to encrypt the key in HmacSHA1 mode, and then initialize a Mac object with the algorithm HmacSHA1, and then use the key to initialize the Mac object. Finally, the Mac objectis processed as Byte, and then Base64 conversion operation is performed on it. |
Content-Type | application/json | / |
Accept | application/json | / |
...