Skip to main content

Request URL

Authentication

To authenticate with our API, you need to include two headers in your requests:
  1. pmock-access-key: Your access key
  2. pmock-access-token: A signature generated using HMAC-SHA256
The signature is generated by:
  • timestamp = The current second level timestamp is rounded down to an integer multiple of the entire minute
  • accessKey:timestamp = To be encrypted string
  • Using the HMAC-SHA256 algorithm, encrypt the encrypted string using the secretKey as the key,Convert the encrypted result to a base64 string

Java Signature Generation Example