To use Kazola API methods, you first need to authorize your username using the following process.
The first step is to create an account with Kazola. Once you have your username and password, simply follow the next step to authorize your user.
Now that you have your account setup with a working username and password, simply sending a request to the following API user to authenticate the user.
For example, let's say you created a user account on Kazola with email acme.john@gmail.com. Now to get an API key for that, simply send a request to the following API URL as follows, with your orignal account password.
https://kazzola.com/api/users/authenticate
{
"email" : "acme.john@gmail.com",
"password" : "123"
}
Once the user gets authenticated, you would get a response from API as follows. From the response simply use the Token
from the API response as follows.
{
"id": "a5399ae3-018d-4cb6-bc1e-ad30fc4a9407",
"name": "Acme John",
"notVisitedTime": 1471500223226,
"mailsVisitedTime": 1472046566388,
"email": "acme.john@gmail.com",
"mobile": "",
"phone": "+92-3316333663",
"designation": "Developer",
"department": "",
"organization": "Workplains (Workplains)",
"imgLink": "/img/dummy_pic.png",
"ipAddress": "124.109.38.85",
"packageType": 3,
"cover": null,
"tzos": 0,
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6ImE1Mzk5YWUzLTAxOGQtNGNiNi1iYzFlLWFkMzBmYzRhOTQwNyIsIm5hbWUiOiJKYXdhaWQgUmVobWFuIiwiZW1haWwiOiJqYXdhaWQucmVobWFuQHdvcmtwbGFpbnMuY29tIiwibW9iaWxlIjoiIiwicGhvbmUiOiIrOTItMzMxNjMzMzY2MyIsImRlcGFydG1lbnQiOiIiLCJkZXNpZ25hdGlvbiI6IkRldmVsb3BlciIsIm9yZ2FuaXphdGlvbiI6IldvcmtwbGFpbnMgKFdvcmtwbGFpbnMpIiwicGFja2FnZVR5cGUiOiIzIiwidHpvcyI6IjAifQ.tvBKtzp1v-NwYMC6BX7UitG1nAYbfplW_VMkuVAEnWU"
}
From the above response, currently, you're only concerned with token key
. Save that with you. We'll be needing that while communicating with API methods.
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6ImE1Mzk5YWUzLTAxOGQtNGNiNi1iYzFlLWFkMzBmYzRhOTQwNyIsIm5hbWUiOiJKYXdhaWQgUmVobWFuIiwiZW1haWwiOiJqYXdhaWQucmVobWFuQHdvcmtwbGFpbnMuY29tIiwibW9iaWxlIjoiIiwicGhvbmUiOiIrOTItMzMxNjMzMzY2MyIsImRlcGFydG1lbnQiOiIiLCJkZXNpZ25hdGlvbiI6IkRldmVsb3BlciIsIm9yZ2FuaXphdGlvbiI6IldvcmtwbGFpbnMgKFdvcmtwbGFpbnMpIiwicGFja2FnZVR5cGUiOiIzIiwidHpvcyI6IjAifQ.tvBKtzp1v-NwYMC6BX7UitG1nAYbfplW_VMkuVAEnWU"