Greetings...

I'm trying to return profile information for a specific user on Orkut
Sandbox from my gadget.

I have verified my gadget and added it as an application on the user's
sandbox account/"page"/profile. I granted permission to retrieve
profile information et...

I'm using a local shindig server to render the gadgets.  I'm testing
this app in the sample container.  Note: My loclal shindig is sitting
behind a firewall (although I don't *think* that is the problem).

Here's the script with the makeRequest:
 <script type="text/javascript">
      var servletUrl="http://www.orkut.com/social/rest/people/
16783685323850170369/@self";

      function request() {
        var params={};
        params[gadgets.io.RequestParameters.CONTENT_TYPE] =
gadgets.io.ContentType.JSON;
        params[gadgets.io.RequestParameters.AUTHORIZATION] =
gadgets.io.AuthorizationType.OAUTH;
        params[gadgets.io.RequestParameters.OAUTH_SERVICE_NAME] =
"orkutSandbox";
        params[gadgets.io.RequestParameters.METHOD] =
gadgets.io.MethodType.GET;

       params["scope"] = "http://sandbox.orkut.com/api/people";;

        gadgets.io.makeRequest(servletUrl,response,params);

      };
    function response(data) {
        doSomeStuffWithTheResponse......
      };
gadgets.util.registerOnLoadHandler(request);
</script>


When I make the request, I get the following error in firebug:
throw 1; < don't be evil' >{"http://www.orkut.com/social/rest/people/
16783685323850170369/@self":{"rc"
:403,"headers":{},"oauthErrorText":"Service provider rejected request\n
\n==== Original request:\nGET
 /social/rest/people/16783685323850170369/@self\n\nHost:
www.orkut.com\nX-Shindig-AuthType: oauth\nX-shindig-dos
: on\n\n\n====\n==== Sent request 1:\nGET /accounts/
OAuthGetRequestToken\n\nHost: www.google.com\nX-Shindig-AuthType
: none\nAuthorization: OAuth opensocial_owner_id=
\"16783685323850170369\", opensocial_viewer_id=\"16783685323850170369
\", opensocial_app_id=\"7411\", opensocial_app_url=\"http%3A%2F
%2Flocalhost%3A8080%2Fgadgets%2Ffiles
%2Fsamplecontainer%2Fexamples%2FFriendsList01.xml\", oauth_version=
\"1.0\", oauth_timestamp=\"1237218311
\", oauth_consumer_key=\"orkut.com%3A954192239446\",
oauth_signature_method=\"HMAC-SHA1\", oauth_nonce
=\"1237218311607652000\", oauth_signature=\"t86xGzYOvoL8FbcsYHdiOJDb3Do
%3D\"\nX-shindig-dos: on\n\n\n
==== Received response 1:\nHTTP/1.1 400\r\n\r\nCache-Control: private,
max-age=0\r\nContent-Type: text
/plain; charset=UTF-8\r\nDate: Mon, 16 Mar 2009 15:45:12 GMT\r
\nExpires: Mon, 16 Mar 2009 15:45:12 GMT
\r\nServer: GFE/2.0\r\nTransfer-Encoding: chunked\r\nX-Content-Type-
Options: nosniff\r\n\r\nparameter_absent
\noauth_parameters_absent:scope\n\n\r\n
\n====","oauthError":"UNKNOWN_PROBLEM","body":""}}


When I check the shindig output, I see the following:

==== Received response 1:
HTTP/1.1 400

Cache-Control: private, max-age=0
Content-Type: text/plain; charset=UTF-8
Date: Mon, 16 Mar 2009 15:45:12 GMT
Expires: Mon, 16 Mar 2009 15:45:12 GMT
Server: GFE/2.0
Transfer-Encoding: chunked
X-Content-Type-Options: nosniff

parameter_absent
oauth_parameters_absent:scope

I thought I had added this properly in the request, but perhaps I've
done this improperly.  Will someone be kind enough to help shed some
light on this issue?

Thanks in advance....
-Mark W.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to