2

Im working with an api, in the documentaion found here: http://api.simplicate.nl/ There is an example curl:

`curl -H “Authentication-Key: {API Key}” -H “Authentication-Secret:{API secret}” https://{subdomain}.simplicate.nl/api/v2/crm/organization.json`

I ran that code like this in terminal:

curl -H “Authentication-Key:XX” -H “Authentication-Secret:XX” https://mydomain.simplicate.nl/api/v2/crm/organization.json

It runs but returns nothing.

8
  • Add -v argument to the curl command and check for any errors. Commented Nov 25, 2016 at 10:16
  • so instead of -H i use -v? @ArminSam Commented Nov 25, 2016 at 10:17
  • No, just add -v after curl... Commented Nov 25, 2016 at 10:17
  • @ArminSam so i just ran it, it returns a bunch of stuff. for example the first 3 lines * IDN support not present, can't parse Unicode domains * Could not resolve host: “Authentication-Key; nodename nor servname provided, or not known * Closing connection #0 curl: (6) Could not resolve host: “Authentication-Key; nodename nor servname provided, or not known Commented Nov 25, 2016 at 10:24
  • Maybe you can add the output here (after removing your key and secret information). Commented Nov 25, 2016 at 10:26

1 Answer 1

1

You are using Header inside “...” that is wrong. You have to use double quote "..." (not sure what it is called, standard double quote?).

So it should be:

curl -H "Authentication-Key:XX" -H "Authentication-Secret:XX" https://mydomain.simplicate.nl/api/v2/crm/organization.json

As a note, currently your curl is sending the headers as following with extra characters.

“Authentication-Key:XX”
“Authentication-Secret:XX”

But it should be:

Authentication-Key:XX
Authentication-Secret:XX
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.