Using the URL "https://www.activecollab.com/" to create a "Free Trial" account for ActiveCollab version5.For that, you need to pass the "Your Name or Organization, Email and Password".
Send a POST request to "https://my.activecollab.com/api/v1/external/login" with "email" and "password" as parameters.
Sample request
{
"password":"xxxxxxxxxx",
"email":"emailAddress"
}
Response
{
"is_ok":true,
"accounts":[
{
"url":"https://app.activecollab.com/134362",
"name":"134362",
"display_name":"vivek (ID: 134362)",
"class":"FeatherApplicationInstance"
}
],
"user":{
"first_name":"vive",
"last_name":"siva",
"intent":"O7NB7V96R0M48-xxxxxxxxxxxxxxx",
"avatar_url":null
}
}
To obtain token, send the "https://app.activecollab.com/{ID}/api/v1/issue-token-intent?format=json" (replace the ID with your account ID which is obtained from the above response [E.g my ID is 134362 ]) with "intent", "client_vendor", and "client_name" as parameters where the intent is obtained from the previous response, client_vendor is the value of the "Your Name or Organization" which is used when we create an account and client_name is the name of the client and you can use any string.
Sample request
{
"intent":"O7NB7V96R0M48-xxxxxxxxxxxxxxx",
"client_vendor":"vivek",
"client_name":"abc"
}
Response
{
"is_ok":true,
"token":"1-5GaNICEMxxxxxxxxxxxxxxxxxxx"
}
Using the token, you can access the activecollab resources by making API calls.
Sample API call to get user information
Send a GET request to "https://app.activecollab.com/{ID}/api/v1/users/{userID}" with header "X-Angie-AuthApiToken 1-5GaNICEMxxxxxxxxxxxxxxx".
Response
{
"single":{
"id":1,
"class":"Owner",
"url_path":"/users/1",
"is_archived":false,
"is_trashed":false,
"trashed_on":null,
"trashed_by_id":0,
"created_on":1474530288,
"created_by_id":1,
"updated_on":1476109011,
"language_id":1,
"first_name":"vive",
"last_name":"siva",
"display_name":"vive siva",
"short_display_name":"vive s.",
"email":"vsvivevives@gmail.com",
"is_email_at_example":false,
"additional_email_addresses":[
],
"is_pending_activation":false,
"avatar_url":"https://app.activecollab.com/134362/proxy.php?proxy=avatar&module=system&v=5.11.13&b=DEV&user_id=1&size=--SIZE--×tamp=1476109011",
"custom_permissions":[
],
"company_id":1,
"title":"",
"phone":"",
"im_type":"",
"im_handle":""
}
}

Comments
Post a Comment