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

  5. Support Staff 5 Posted by Seth B on 19 Jun, 2018 09:38 PM

    Seth B's Avatar

    You only need to use 'kustomkartel:apikey' with the -u flag, not your entire URL.

  6. 6 Posted by Kulvir Kaur on 20 Jun, 2018 03:03 PM

    Kulvir Kaur's Avatar

    Thank you so much Seth. It is working fine at my end now. I appreciate your help.

  7. Kulvir Kaur closed this discussion on 20 Jun, 2018 03:03 PM.

Comments are currently closed for this discussion. You can start a new one.

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

Recent Discussions

03 Nov, 2024 02:49 AM
29 Oct, 2024 04:41 PM
10 Sep, 2024 12:44 AM
10 Sep, 2024 12:44 AM
10 Sep, 2024 12:40 AM