activecollab-feather-sdk icon indicating copy to clipboard operation
activecollab-feather-sdk copied to clipboard

Can get issue token with cURL, Postman or SDK

Open visualitnetworks opened this issue 4 years ago • 1 comments

Sorry if this is not the right place but I can't find help for my problem

I'm trying to connect to ActiveCollab API but it is impossible. I tried with Postman and cURL but I'm obtain the same result:

{
  "type": "ValueError",
  "message": "DOMDocument::loadXML(): Argument #1 ($source) must not be empty",
  "code": 0
}

This is the command with the endpoint

curl -XPOST -d '[email protected]&password=XXXXXX' https://app.activecollab.com/XXXXXX/api/v1/issue-token

Any idea?

visualitnetworks avatar Nov 16 '21 17:11 visualitnetworks

Hi,

Try wit this:

curl --request POST \
  --url https://app.activecollab.com/api/v1/issue-token \
  --header 'Content-Type: application/json' \
  --data '{
    "username": "[email protected]",
    "password": "XXXXXX",
    "client_name": "Test App",
    "client_vendor": "Test"
}'

godiez avatar Feb 08 '23 12:02 godiez

The above does not work as well, Same problem here, are there any solutions for that?

bumbus avatar Dec 30 '24 09:12 bumbus

this works for cloud version: https://github.com/activecollab/activecollab-feather-sdk/issues/35#issuecomment-2565471377

bumbus avatar Dec 30 '24 13:12 bumbus