Cashboard API is not working

Kulvir Kaur's Avatar

Kulvir Kaur

13 Jun, 2018 04:55 PM

Hello there,

Hope you are doing well!!

I tried to connect with cashboard API using curl on terminal but I was getting message as below:

<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx/1.6.3</center>
</body>
</html>

Do you have any idea about it. I will appreciate your help.

Regards
Kulvir Kaur

  1. Support Staff 1 Posted by Seth B on 13 Jun, 2018 06:20 PM

    Seth B's Avatar

    Hi Kulvir,

    Can you please send the request you were sending to the API?

  2. 2 Posted by Kulvir Kaur on 13 Jun, 2018 06:37 PM

    Kulvir Kaur's Avatar

    Thanks for your quick reply.
    Here is my request

    curl -H 'Accept: application/xml' -H 'Content-Type: application/xml' -u http://kustomkartel.cashboardapp.com:<my cashboard api key> http://api.cashboardapp.com/projets

  3. Support Staff 3 Posted by Seth B on 17 Jun, 2018 09:35 PM

    Seth B's Avatar

    The URL would be …

    https://api.cashboardapp.com/projects <https://api.cashboardapp.com/projects>

    You have a couple of typos in there, the first being it needs to connect over HTTPS, which is secure. The second is the URL is “projects” not “projets”

    Correcting both of those should help!

    - Seth

  4. 4 Posted by Kulvir Kaur on 18 Jun, 2018 04:44 PM

    Kulvir Kaur's Avatar

    Thanks for your reply Seth.

    Now, I have used following request:
    curl -H 'Accept: application/xml' -H 'Content-Type: application/xml' -u http://kustomkartel.cashboardapp.com:<api key> https://api.cashboardapp.com/projects

    But, I am getting message as "HTTP Basic: Access denied." as I have used the correct API Key.

    Thanks

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac