Cashboard API is not working
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
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
Support Staff 1 Posted by Seth B on 13 Jun, 2018 06:20 PM
Hi Kulvir,
Can you please send the request you were sending to the API?
2 Posted by Kulvir Kaur on 13 Jun, 2018 06:37 PM
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
Support Staff 3 Posted by Seth B on 17 Jun, 2018 09:35 PM
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 Posted by Kulvir Kaur on 18 Jun, 2018 04:44 PM
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
Support Staff 5 Posted by Seth B on 19 Jun, 2018 09:38 PM
You only need to use 'kustomkartel:apikey' with the -u flag, not your entire URL.
6 Posted by Kulvir Kaur on 20 Jun, 2018 03:03 PM
Thank you so much Seth. It is working fine at my end now. I appreciate your help.
Kulvir Kaur closed this discussion on 20 Jun, 2018 03:03 PM.