1. Send a POST request to "https://my.activecollab.com/api/v1/external/login" with "email" and "password" as parameters.
You should get the following response:
{
accounts = ({
class = FeatherApplicationInstance;
"display_name" = "A51 (ID: 1)";
name = 1;
url = "https://app.activecollab.com/1";
} // plus any other instances you have access to
);
user = {
"avatar_url" = "https://my.activecollab.com/avatars/user_183394.png";
"first_name" = Tomislav;
intent = "long string";
"last_name" = "Todorov Filipovic";
};
}
"accounts" are instances that you have access to:
- "class" - a type of Active Collab instance (FeatherApplicationInstance is the current, new version).
- "name" - ID of the cloud instance
- "display_name" - the name of the instance like "Company Name (ID: #)"
- "url" - URL to your Active Collab instance
"user" contains the URL of the user's avatar, first name, last name, and the intent for the token.
2. Send a POST request to “https://app.activecollab.com/1/api/v1/?format=json&path_info=%2Fissue-token-intent” with "intent", "client_vendor", and "client_name" as parameters. Just switch "https://app.activecollab.com/1" with your instance's URL.
@malizmaj I tried the above (https://my.activecollab.com/api/v1/external/logi ) and gets a response saying I need to double check my password. But this is the password that I use to login to https://my.activecollab.com/ then choose the project.
@bennettscience What value do we add to client_name and client_vendor? I tried adding the team I am added to in "client_name" and My app name in client_vendor. This threw a 500 error
Guys any help will be highly appreciated!!
Thank You