Other Questions
Less than 1 minute
Q1: Client Error?
{"code":3,"message":"client error(java.security.spec.InvalidKeySpecException: java.security.InvalidKeyException: IOException : algid parse error, not a sequence)","success":false,"timestamp":0}
A possible cause is that the private key is not formatted in pkcs8. Please follow the instructions in this documentation.
Q2: common param error(sign check error)?
The returned error message is as follows:
{"code":1000,"data":"","message":"common param error(sign check error)","timestamp":1527732508206}
Reason: A possible cause is that the openapi public key has been changed to user's public key by mistake. Or the user's private key is not correctly configured
Timestamp Conversion
The default time format in Open API is UNIX timestamp. Refer to the following example for how to convert a timestamp into human readable time in your timezone:
>>>from datetime import datetime
>>>from pytz import timezone
>>>time_stamp = 1546635600000
>>>tz = timezone('Asia/Chongqing')
>>>datetime.fromtimestamp(time_stamp, tz)
datetime.datetime(2019, 1, 5, 5, 0, tzinfo=<DstTzInfo 'Asia/Chongqing' CST+8:00:00 STD>)