API Retrieve User Token query curl example
Retrieve User Token query example with CURL from API guide (http://www.pivotaltracker.com/help/ap...) returns an empty string. Is it correct?
I have also tried curl -u user:pass -X GET https://www.pivotaltracker.com/servic... but result was the same.
I have also tried curl -u user:pass -X GET https://www.pivotaltracker.com/servic... but result was the same.
2
people have this problem
I have this problem, too!
Tell me when someone solves it.
The more people who report this problem, the more it gets noticed.
The more people who report this problem, the more it gets noticed.
The company marked this problem solved.
-
Inappropriate?Hi Anton, sorry about that. It looks like there might be a problem with this API call. We'll look into it, thanks for letting us know.
-
Inappropriate?Actually, it looks like it's working for me. You do need to use ssl (https), though, is your curl install configured to use ssl? Mine wasn't. It looked like it was returning an empty string, but it was actually getting a 400 error. You can see the response header with the -I option.
-
Inappropriate?Could you please explain or point at some docs that explain how one'd configure curl to use ssl?
the -l option didn't change anything for me - i still see the empty string. I tried the -k flag that tells curl to accept any certificates - but no luck.
I also have tried to implement the integration in Java, but there i get the 401 error and the response doesn't contain the "WWW-Authenticate" header, so apache's httpclient doesn't know how it should perform authentication and crashes with:
WARN [main] org.apache.http.impl.client.DefaultRequestDirector - Authentication error: Unable to respond to any of these challenges: {}
org.apache.http.client.HttpResponseException: Unauthorized
at org.apache.http.impl.client.BasicResponseHandler.handleResponse(BasicResponseHandler.java:71)
I also tried to make a direct URLConnection (in Java) but result still was 401.
Perhaps you can share User Token query implemented in any programming language (Java, Ruby, Python), so i could validate my code against that?
I’m excited
-
1 person says
this solves the problem
-
Inappropriate?Going through older topics...if this is still a problem for anyone, with the latest version of the API (V3), please let us know.
Loading Profile...


EMPLOYEE
