This topic describes how to authorize a Resource Access Management (RAM) user to access Message Service (MNS).
Procedure
What to do next
- Download the latest version of the SDK for Python to the server and decompress the package.
- Open the sample.cfg file in the mns_python_sdk directory, and specify the AccessKey pair (AccessKey ID and AccessKey secret) of the RAM user and the MNS endpoint of the Alibaba Cloud account.
- Run the
python sample.py
command.If no error is returned, the AccessKey pair of the RAM user can be used to access MNS queues that are created by the Alibaba Cloud account.