Hi ,
I am trying to integrate MySpaceID using PHP-SDK. I integrated it on my local server which had PHP version 5.2.0. It worked fine on it. When I deployed it on my live server which has PHP 5.1.6, it gave me error Class DateTime() not found in myspace.php.
So I tweaked a bit & used php 5.1.6 function date("Y-m-d\TH:i:sP") which gave the same output as
DateTime::ATOM in PHP 5.2.0.
After doing that, it gave me exception HTTP error 401oauth_problem=timestamp_refused.
Also, I changed the the callback url, realm url according to my live server...
I am able to authenticate on MySpace but cant execute
$ms = new MySpace(CONSUMER_KEY, CONSUMER_SECRET, $authorized_request_token->key, $authorized_request_token->secret);
I dont know much about MyspaceID integration. I just followed the tutorial on
http://wiki.developer.myspace.com/index.php?title=MySpaceID_PHP_SDK_Walkthrough_for_Relying_Parties
Please help me out with suggestions.
Following is the complete exception :
[MySpaceException]
Request to http://api.myspace.com/access_token?oauth_version=1.0&oauth_nonce=a7254ca55f9ef0db01d07c3d598vfgsd&oauth_timestamp=1247738331&oauth_consumer_key=dd4cb72f34a14134918518ebe8e6gytr&oauth_token=0zfNSgjqffnVgwJjJmXP7WGWqNe45AT52JcCoJoGOIlnEp3brC27TS80VtQa2rud%2BtX5atxV6iYEX6vgXNQPMshQbndaBmzMF6Ukn8%2FI7Zsrg737k8PKVU5mcDMNmwmT&oauth_signature_method=HMAC-SHA1&oauth_signature=EKkWOr9J%2BLnKu%2B7%2FAlE1tQlbeOM%3D failed:
HTTP error 401
Response:
HTTP/1.1 401 Unauthorized Cache-Control: private Content-Length: 82 Content-Type: application/x-www-form-urlencoded; charset=utf-8 Server: Microsoft-IIS/6.0 WWW-Authenticate: OAuth realm="http://api.myspace.com/authorization", oauth_problem=timestamp_refused, oauth_acceptable_timestamps=1247751793-1247752693 Set-Cookie: MSCulture=IP=74.XXX.XXX.XXX&IPCulture=en-US&PreferredCulture=en-US&PreferredCulturePending=&Country=VVM=&ForcedExpiration=633833242934958422&timeZone=0&myStuffDma=&myStuffMarket=&USRLOC=QXJlYUNvZGU9NjEwJkNpdHk9V2F5bmUmQ291bnRyeUNvZGU9VVMmQ291bnRyeU5hbWU9VW5pdGVkIFN0YXRlcyZEbWFDb2RlPTUwNCZMYXRpdHVkZT00MC4wNTQ4JkxvbmdpdHVkZT0tNzUuNDA4MyZQb3N0YWxDb2RlPTE5MDg3JlJlZ2lvbk5hbWU9UEE=; domain=.myspace.com; expires=Sat, 15-Aug-2009 13:58:13 GMT; path=/ Set-Cookie: ASP.NET_SessionId=zwrilv550hlris45aylmhjr0; path=/; HttpOnly X-Server: 5256a0a8505249581c66d025ddd8e24830ee6acb668b155e Set-Cookie: SessionDDF1=5a631c3e941fb3af1279ab8e37a0325b31638bcba20f02e8; domain=.myspace.com; path=/ Set-Cookie: SessionDDF2=ef1f3975sdfsdfsd4d217c083a4eafb6897747792045f87f3; domain=.myspace.com; path=/; expires=Saturday, 16-Jan-10 13:58:13 GMT Date: Thu, 16 Jul 2009 13:58:13 GMT oauth_problem=timestamp_refused, oauth_acceptable_timestamps=1247751793-1247752693