03. Authentication
Authentication is done by sending the param apikey=[apikey]
curl 'http://api.linkmobility.dk/v2/ping.json?apikey=[apikey]' -X GET curl 'http://api.linkmobility.dk/v2/ping.xml?apikey=[apikey]' -X GET
and you'll get something like:
<?xml version="1.0"?> <response> <status>200</status> <userid>7405</userid> <username>hn</username> <iprange>77.243.40.100</iprange> <apikey>a1bd9f58b7d6a45b48fa92c427132c4ad3744afdebf8b99af207de991f78f9d4</apikey></response>
{ "status": 200, "userid": "7405", "username": "hn", "iprange": "77.243.40.100", "apikey": "a1bd9f58b7d6a45b48fa92c427132c4ad3744afdebf8b99af207de991f78f9d4" }
Legacy auth
This function should not be used in new implementations, and will in the future be depricated.
curl 'http://api.linkmobility.dk/v2/ping.json?apikey=legacy&username=[username]&password=[password]&type=[md5|plain]' -X GET curl 'http://api.linkmobility.dk/v2/ping.xml?apikey=legacy&username=[username]&password=[password]&type=[md5|plain]' -X GET
Feeling lost? Click on this link! Portal page