5039ba2626d8b130a610a11b284e1e69bf52ed4d
Active Collab API
Note: I have tested this API against the Cloud-Hosted version of Active-Collab, not with the self-hosted installation!
Useful links
- https://developers.activecollab.com/api-documentation/index.html
- https://github.com/activecollab/activecollab-feather-sdk
- https://stackoverflow.com/questions/tagged/activecollab
Workflow
- Login with username and password to Authentication Server and get back the
intentfor the user - Request a token for some Account (user could have multiple accounts) using the Account
urland the usersintent - Use the token to authenticate for every other API-Call
Example login:
auth = ACAuthenticator()
session = auth.login(username, password)
pprint(session)
user = session['user']
# use first account
account = auth.find_account(account_name)
Example request token
token = ACTokenAuthenticator(account, user).issue_token_intent()
pprint(token)
Example client request
ac = ACClient(account, token)
res = ac.get_projects()
pprint(res.json())
Configuration
config.ini:
[LOGIN]
username = you@example.com
password = very-secret
account_name = "#123456"
Languages
Python
97.9%
Dockerfile
1.5%
Shell
0.6%