API DOCUMENTATION v1.0

Authenticating users

The first step of being able to actually send messages through the PushNotifier-API is to authenticate users. Authenticating users is as easy as saying 'Cheesecake Factory'.

POST https://a.pushnotifier.de/1/login

Request

String
apiToken
Your API Token.
String
username
Username of the user.
String
password
Password of the user.

Response

String
status
"ok", if valid.
Error message, if not.
Integer
code
Error code

0 = ok
1 = Invalid API Token
2 = Invalid App Token

You will need to save the App Token in a secure place because every action you do is authenticated using the App Token.
Remember to check the token every so often, because it changes when the user changes his password.