|
Hi I'm trying to retrieve user status using RESTful APIs exposed. I ve tried both the following URls. http://api.hi5.com/rest/status/getStatus /
<
|
Jan 4
10:49 PM
|
|
try this: http://api.hi5.com/rest/status/getStatus?Hi5AuthToken=your_auth_token_here_which_is_acquired_as_described_below
to get the auth token send a post here: http://api.hi5.com/auth/plain?api_key=your_api_key&username=your_username&password=your_password
that will return an auth toekn which you plug into your first request
I have some sample code here: http://hi5.com/friend/group/2364084--15430404--Hi5%2BPlatform%2BDevelopment--Hi--topic-html
|
Jan 5
8:50 AM
|
|
Thanks Nick.
Do you know if the link for getting oauth token is still valid? I curl links with either "username" or "email" followed by my log-in (which is an email address), none of them worked. Would you know why this happened? I keep getting 404 error.
Thank you very much in advance!
|
Jan 29
6:41 AM
|
|
Just a clarification, token that you get at auth/plain is not an oauth token, oauth is still being implemented, but yes, that endpoint is valid, you just need to send proper request with all required parameters
|
Jan 29
11:21 AM
|
|
I can get the Hi5AuthToken, but when I call the URL for getting status, I get empty response, no XML. Browser's XML parser just displays error, that it cannot parse response.
|
Feb 5
7:00 AM
|
|
could you please share how did you get the token?
it only worked for me once, by calling POST on http://api.hi5.com/rest/auth/plain?api_key=MYKEY&username=MYEMAIL%40gmail.com&password=MYPASSWORD
thank you!!
|
Feb 5
9:04 AM
|
|
I got my token by using the form in the documentation for the /auth/plain call (http://api.hi5.com/rest_.auth.plain.html). I also tried by using Poster and I POSTed the URL you provided and it worked for me.
|
Feb 5
11:45 PM
|
|
Hi,
I want to get the status and using following function in the above mentioned class
public function setStatus($iUser) { $sQuery = $this->sServer.'json/status/getStatus'; return $this->do_request($sQuery, array('Hi5AuthToken'=>$this->aToken), "GET", "json"); }
and getting error:
Warning: fopen(http://api.hi5.com/json/status/getStatus?Hi5AuthToken=SkiyD0pIsg8a5LejAQAAAA..%3AjbfjRSyiEGDcyF5cchEdjkF91tyIg4eVHNK1XAA0saECA7sclMs-_iiDEXljtwgbcFBjNikNZqQ9G5EkS4gDSRpCJBeQDk3LPCDUDclAsp4.) [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error in E:\wwwroot\yash\statusUpdater\hi5\index.php on line 88
Please let me know the solution
Thanks
|
Jun 29
5:42 AM
|
|
Hi,
I want to get the status and using following function in the above mentioned class
public function getStatus($iUser) { $sQuery = $this->sServer.'json/status/getStatus'; return $this->do_request($sQuery, array('Hi5AuthToken'=>$this->aToken), "GET", "json"); }
and getting error:
Warning: fopen(http://api.hi5.com/json/status/getStatus?Hi5AuthToken=SkiyD0pIsg8a5LejAQAAAA..%3AjbfjRSyiEGDcyF5cchEdjkF91tyIg4eVHNK1XAA0saECA7sclMs-_iiDEXljtwgbcFBjNikNZqQ9G5EkS4gDSRpCJBeQDk3LPCDUDclAsp4.) [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error in E:\wwwroot\yash\statusUpdater\hi5\index.php on line 88
Please let me know the solution
Thanks
|
Jun 29
5:42 AM
|
|
u r idiot...
|
Sep 8
6:26 AM
|