marchesesimone / oauth-php

Automatically exported from code.google.com/p/oauth-php
MIT License
0 stars 0 forks source link

TOKEN EXPIRED message when trying to access any foursquare api url. #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. move library files to server that supports PHP
2. fill in key, secret and url data into /example/client/twolegged.php

What is the expected output? What do you see instead?
Should get a successful response from foursquare's api.

What version of the product are you using? On what operating system?
revision 98

Please provide any additional information below.
Exceptionexception 'OAuthException2' with message 'Request failed with 
code 401: <?xml version="1.0" encoding="UTF-8"?>
<unauthorized>TOKEN_EXPIRED</unauthorized> 
/library/OAuthRequester.php:117

Original issue reported on code.google.com by sunk...@gmail.com on 9 Mar 2010 at 5:16

GoogleCodeExporter commented 9 years ago
Example URL for oauth service: http://api.foursquare.com/v1/venue

$method: "GET";
$params: "vid=415555";

Original comment by sunk...@gmail.com on 9 Mar 2010 at 5:36

GoogleCodeExporter commented 9 years ago
Hi sunkorg, could you be more detailed? Are you using two-legged oauth or 
3-legged?
Does it return TOKEN_EXPIRED immediately or does it work once?

Original comment by brunobg%...@gtempaccount.com on 9 Mar 2010 at 8:16

GoogleCodeExporter commented 9 years ago
Hi:  I'm using the two-legged script found out /example/client/twolegged.php

The TOKEN_EXPIRED appears immediately upon initiating the request.

Hope that helps.

Original comment by sunk...@gmail.com on 10 Mar 2010 at 2:58

GoogleCodeExporter commented 9 years ago
I'm looking into it.

Original comment by brunobg%...@gtempaccount.com on 11 Mar 2010 at 11:58

GoogleCodeExporter commented 9 years ago

Original comment by brunobg%...@gtempaccount.com on 12 Mar 2010 at 10:27

GoogleCodeExporter commented 9 years ago
The problem is happening, but I can't find the cause. I added a new example, in
example/client/twoleggedtest.php that works with another service provider. You 
should
contact foursquare to see if they can help with this issue.

Original comment by brunobg%...@gtempaccount.com on 16 Apr 2010 at 8:15

GoogleCodeExporter commented 9 years ago
I wrote foursquare a message descriping this problem. No answer till now... :( 
Did someone else wrote a message and got a response?

Original comment by fiedler....@gmail.com on 14 Jun 2010 at 8:09

GoogleCodeExporter commented 9 years ago
I fixed a bug that may have solved this problem. Please test the last SVN 
version (139) and let me know.

Original comment by brunobg%...@gtempaccount.com on 29 Jul 2010 at 3:14

GoogleCodeExporter commented 9 years ago
不错啊。感谢。

Original comment by xieyanwei51@gmail.com on 4 Aug 2010 at 2:42

GoogleCodeExporter commented 9 years ago
Given the feedback by xieyanwei51, which google has told me means "Nice. 
Thanks.", I'm going to close this one. 

Original comment by brunobg%...@gtempaccount.com on 10 Aug 2010 at 6:15