This article describes how to obtain the signature string of an API request.

You must be familiar with the procedure to sign an API request and the precautions for the procedure. For more information, see API Reference. In this example, the following HTTP headers are used:

GET /MyQueue HTTP/1.1
Host: $AccountId.mns.cn-hangzhou.aliyuncs.com
Date: Thu, 09 Jul 2015 03:01:34 GMT
x-mns-version:2015-06-06

The following string-to-sign is used:

GET
(Line break)
(Line break)
Thu, 09 Jul 2015 03:01:34 GMT
x-mns-version:2015-06-06
/MyQueue           

If accessId is TestAccessID, and accesskey is TestAccessSecret, the signature string is uwx3yeWoILzgmvesW0BQSgfM****.