获取授权码

您需要获取一个授权码才能使用 API 购买号码。

auth

GET https://api.globalsms.io/api_gsim/v1/auth

Headers

Name
Type
Description

username

string

This is the login you use in UI portal.

password

string

This is the password you use in UI portal.

{
  "success": true,
  "data": {
    "access": "eyJhbGcinJlZ2lzdGVyZWRfb24iOm51bGwsImRlbGV0ZWudWxsLCJpc19zdXBlcnVzZXIiOm51bGwsImlzX3Jlc2VsbGVyIjpudWxsLCJyZXNlbGxlcl91dWlkIjpudWxsLCJpYXQiOjE3MTkzMzAzMDQsImV4cCI6MTcxOTQxNjc"
  }
}

Example

curl -X 'POST'  
  'https://api.globalsms.io/api/auth/login'  
  -H 'accept: */*'  
  -H 'Content-Type: application/json'  
  -d '{
  "email": "[email protected]",
  "password": "1234567890"
}'

Last updated

Was this helpful?