Your API token can be found by logging into your Imonggo account, clicking on the "My Info" link in the upper-right, and then clicking "show" under "API token".
Please note that "API token" section will only be shown if API Interface is enabled (from Control Center > Premium Features).
It is also possible to retrieve the API token programmatically by passing your email and password. This article shows how this token can be retrieved programmatically.
GET /tokens.xml
You can retrieve the current token by passing email and password parameters
Example
curl "https://test_account.imonggo.com/api/tokens.xml?email=me@gmail.com&password=12345" \
-H "Accept: application/xml" \
-H "Content-Type: application/xml"
Sample Result:
<?xml version="1.0" encoding="UTF-8"?>
<hash>
<api_token>1eca48c82fa4a5bbe1397d673355428f9d6f4037</api_token>
</hash>
Return Codes:
CODE/STATUS | CONDITION |
200 OK | if successful |
404 Not Found | if there is no matching email or password |
Note
It is important to use HTTPS protocol to encrypt your email and password during transmission.