# Logout
This request is used for partners to logout.
# Request Configuration
# Request Endpoint
/api/Partner/Logout
# Request Method
Get
# Request Headers
Name | Type | Description |
---|---|---|
aaid | string | Use AaId returned from Login |
token | string | Use Token returned from Login |
# Request Parameters:
None
# Request Body
None
# Sample Reqeust
# Sample Request URL
https://phoneboxapi.azurewebsites.net/api/Partner/Logout
# cURL
curl --location --request POST 'https://phoneboxapi.azurewebsites.net/api/Partner/Logout' \
--header 'client: 1234' \
--header 'apitoken: 1eMPGml82EhtyH0CSAw4RrLbEi3jjWA0'
# Python - Requests
import requests
url = "https://phoneboxapi.azurewebsites.net/api/Partner/Logout"
headers = {
'client': '1234',
'apitoken': 'foqxcFJ82EhecRXnIZbeQbb8m9/dFFHO'
}
response = requests.post(url, headers=headers, params=params)
print(response.text.encode('utf8'))
# NodeJs -Axios
var axios = require('axios');
var data = {};
const url = "https://phoneboxapi.azurewebsites.net/api/Partner/Logout";
axios
.post(url, data, {
headers: {
client: '1234',
apitoken: 'foqxcFJ82EhecRXnIZbeQbb8m9/dFFHO'
}
})
.then(res => {
console.log(JSON.parse(res.data));
})
.catch(err => {
console.log(err);
});
# Response
# Success
return "log out success"
"log out success"
# Non-Success
"log out failed"
"log out failed"
# Fail
Failed Authorization
reason: wrong login credential
{
"Message": "Authorization has been denied for this request."
}
← Log In Verify Simcard →