Re: [orkut-developer] Re: New Developer Page and New App Development/Submission/Review Workflow

2011-11-30 Thread Roberto Scattini
hello,

2011/11/23 ZZTop 

> Add your application to your developer profile.*
> **To do this, just type the URL to its XML in the box that appears at the
> top of the page (the one that says "add an application by URL") and
> clicking
> the "add" button. After that, you have to reload the page in order for it
> to
> work.
>
>
>
can you see the xml file if you access it directly from your browser?

did you check that all the required params are present?

can you send a copy of the xml?



--
Roberto Scattini

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



[orkut-developer] about filtering friends

2011-08-02 Thread Roberto Scattini
hi everybody!

i would like to know if there is a way in orkut to obtain a list of my
friends that have "the current app" installed.
it could be in javascript , or in rpc or rest endpoints (PHP).

thanks in advance!!!


Roberto Scattini

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



[orkut-developer] about activities

2011-08-02 Thread Roberto Scattini
hi all,

i want to know how can i publish an activity that includes a link to my app
in the header section...

my publish function looks like this:

send : function(mensaje, attachments) {
var text = attachments.name;
var params = {};
params[opensocial.Activity.Field.BODY] = '' +
text + '';
params[opensocial.Activity.Field.TITLE] = attachments.caption;
var activity = opensocial.newActivity(params);
opensocial.requestCreateActivity(activity,
opensocial.CreateActivityPriority.HIGH, callback);
  }

but the activity created doesn't include a link to the app.

thanks in advance.


Roberto Scattini

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



Re: [orkut-developer] Advantages of gadgets.io.makeRequest

2011-06-14 Thread Roberto Scattini
yes rapahel, you will be able to make ajax calls to your server with
"standard AJAX".
BUT you will face problems with cross domain requests, and PREFLIGHT OPTIONS
requests. it is similar to what happens with flash requests and
crossdomain.xml

here you have a bunch of information:
https://developer.mozilla.org/en/http_access_control

your server (or php) will have to add some headers to reply the OPTIONS
request.

in the other hand, the makerequest also adds the opensocial data (including
validation).

a week ago i had to decide about this, and i stayed with makerequest.

hope it helps.


--
Roberto Scattini


2011/6/3 Rapha 

> Hi,
>
> I'm writing a social gadget to Orkut that make calls to my server.
> These calls are meant to store user data, game data, "neighbors" and
> so on...
> Well, I'm not sure if it's worth make calls to this server using
> gadgets.io.makeRequest. Maybe would be better make calls directly
> using jQuery.ajax(), for example.
> Reading the docs, I've seen that using makeRequest, we are able to
> send signed requests to avoid tampered requests. We can verify the
> integrity of the requests (as described in Validating Signed Requests
> article).
> So... I don't know for sure if makeRequest is slower than, like I
> said, jQuery.ajax() calls...
> I need to know if this can slowdown high traffic applications...
> I believe that if I don't use makeRequest, I need to create another
> mechanism to protect the user requests, right?
> Can I use the PHP client library to verify the request not sent via
> makeRequest?
>
> Best regards!
>
> --
> You received this message because you are subscribed to the Google Groups
> "orkut Developer Forum" group.
> To post to this group, send email to opensocial-orkut@googlegroups.com.
> To unsubscribe from this group, send email to
> opensocial-orkut+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/opensocial-orkut?hl=en.
>
>

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



Re: [orkut-developer] post image

2011-06-02 Thread Roberto Scattini
hello ashcsi,

i think mediaitems in activities are not supported, check this link:
http://code.google.com/intl/es-419/apis/orkut/docs/orkutfeaturemapping.html#activity


regards!

Roberto

2011/6/1 ashcsi ashcsi 

> Hello All,
>
> How do we post image, media in the opensocial orkut activity stream. I am
> using the following code:
>
> var params = {};
> var image = opensocial.newMediaItem('IMAGE','http://path_to_png');
> params[opensocial.Activity.Field.TITLE] = "TEST TITLE";
> params[opensocial.Activity.Field.BODY] = "This is a sample text";
> params[opensocial.Activity.Field.MEDIA_ITEMS] = image;
> var activity = opensocial.newActivity(params);
> opensocial.requestCreateActivity(activity,
> opensocial.CreateActivityPriority.HIGH, callback);
>
> But the image is not getting displayed. Any ideas?
>
> thanks
> ashy
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "orkut Developer Forum" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/opensocial-orkut/-/bTBmQ1pyMGZ6TVFK.
> To post to this group, send email to opensocial-orkut@googlegroups.com.
> To unsubscribe from this group, send email to
> opensocial-orkut+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/opensocial-orkut?hl=en.
>

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



Re: [orkut-developer] OpenSocial/Orkut Tutorials Outdated?

2011-05-23 Thread Roberto Scattini
Max,

yes, bruno stated in some other emails on this list that the docs are a
little outdatted.
here you have a resume of the new submission proccess:
http://code.google.com/intl/es-419/apis/orkut/forum.html?place=topic%2Fopensocial-orkut%2F5NKAtwwyY0c%2Fdiscussion

<http://code.google.com/intl/es-419/apis/orkut/forum.html?place=topic%2Fopensocial-orkut%2F5NKAtwwyY0c%2Fdiscussion>you
should avoid 2LO and REST (some things could, some other things not).
AFAIK, the recomended ways to go are 3LO + RPC endpoint (you have many
client libraries for orkut); or a complete javascript implementation.

correct me if I am wrong!


good luck!


Roberto Scattini

2011/5/20 max2 

> Greetings,
>
> I am brand new to working with OpenSocial and Orkut and I've been
> going through the available tutorials and guides such as this one:
>
> http://bit.ly/PArb <http://www.google.com/url?sa=D&q=http://bit.ly/PArb>
>
> and this video tutorial:
>
> http://bit.ly/lGXxw7<http://www.google.com/url?sa=D&q=http://bit.ly/lGXxw7>
>
> I have signed up for the Developer Sandbox and it *seems* I did this
> successfully but even still I'm having the following issues:
>
> 1) The Orkut GUI being shown/used in these tutorials is the older
> version.  The newer Orkut GUI does not seem to work in the same manner
> at all.  Specifically, I do not see how to add an application without
> submitting it for approval first which would seem to defeat the
> purpose of using the sandbox.
> 2) I've successfully hosted my helloword.xml file on Google Code
> Project hosting BUT I cannot figure out (don't laugh) how to get a URL
> that I can use to add my simple gadget in the applications area using
> the old Orkut GUI.  Again, I would much prefer to use the new Orkut
> GUI but I don't for the reasons already stated.
>
> So I'm sure I've made mistakes here but I would really appreciate some
> guidance on how to get going with developing on Orkut using
> OpenSocial.
> Thanks,
> Max
>
> --
> You received this message because you are subscribed to the Google Groups
> "orkut Developer Forum" group.
> To post to this group, send email to opensocial-orkut@googlegroups.com.
> To unsubscribe from this group, send email to
> opensocial-orkut+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/opensocial-orkut?hl=en.
>

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



Re: [orkut-developer] Sending message to post on wall

2011-05-23 Thread Roberto Scattini
no, requestSendMessage is to send an email (or "Message") to the users.
you shoul try with requestCreateActivity, here you have a dummy sample (call
it with Activity.dummySend() ):

var Activity = {
  dummySend : function() {
text = "This is a sample activity, created at " + new Date().toString();
var params = {};
params[opensocial.Activity.Field.BODY] = text;
params[opensocial.Activity.Field.TITLE] = 'Este es el titulo';
var activity = opensocial.newActivity(params);
opensocial.requestCreateActivity(activity,
opensocial.CreateActivityPriority.HIGH, callback);
  }
};

function callback(status) {
  if (status.hadError()) {
alert("Error creating activity.");
  } else {
alert("Activity successfully created.");
  }
  return true;
};

2011/5/12 Vovchetto 

> Hi everyone! How can I send message to post it on user's wall?
> I'm using follow code:
>
>function postMessage(id, body) {
>
> var params = {};
> params[opensocial.Message.Field.TITLE] = "Some
> Title";
> params[opensocial.Message.Field.TYPE] =
> opensocial.Message.Type.PUBLIC_MESSAGE;
>
> var message = opensocial.newMessage(body, params);
>
> opensocial.requestSendMessage(id, message,
> function(data) {
> console.log(data);
> });
>
>}
>
> Is it correct way?
> Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups
> "orkut Developer Forum" group.
> To post to this group, send email to opensocial-orkut@googlegroups.com.
> To unsubscribe from this group, send email to
> opensocial-orkut+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/opensocial-orkut?hl=en.
>
>

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



Re: [orkut-developer] content type url

2011-05-23 Thread Roberto Scattini
the type=url is disabled.
try with type=html.
and if you have to include some page, investigate the method makerequest of
opensocial.

good luck!


Roberto.

2011/5/23 ashcsi ashcsi 

> Hello All,
>
> I have added a gadget with content type="url" and the url points to a php
> page. But I am  not able to make any calls to orkut javascript client api.
> How do I include the orkut javascript client library as well in my gadget?
>
> thanks
> ashy
>
> --
> You received this message because you are subscribed to the Google Groups
> "orkut Developer Forum" group.
> To post to this group, send email to opensocial-orkut@googlegroups.com.
> To unsubscribe from this group, send email to
> opensocial-orkut+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/opensocial-orkut?hl=en.
>

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



Re: [orkut-developer] Re: help terms

2011-05-05 Thread Roberto Scattini
yes, i can add this:

i am using prototype in my javascript framework, and it had driven me almost
crazy this:
http://code.google.com/p/opensocial-resources/issues/detail?id=104

adjustHeight
and other opensocial api calls where working inconsistently, and without any
errors.

so, if you dont see any error, maybe you have some kind of incompatibility.
i solved mine upgrading my prototype to the last version.

thanks!


2011/5/4 Bruno Oliveira ("btco") 

> Thanks for this great post! :-)
>
> It's a good thing you brought up point #1, it can be frustrating to many
> developers. It's always a good idea to include a version number in your XML
> to make sure you are debugging the right thing. We also cache other
> application assets, so if you just updated a graphics file that you are
> using, you may not see changes immediately.
>
> Another relevant point is that you should always do error handling on the
> callbacks:
>
> function callback(data) {
>if (data.hadError()) {
>   // handle error
>}
>...
> }
>
> Why? Because if you don't check and try to operate on the data anyway, you
> may get strange 'null' and 'undefined' values. I remember spending a few
> hours scratching my head at this when I had just started learning
> OpenSocial. So the bottom line is: always check for errors!
>
> By the way, you can get the error message like this:
>
> data.getErrorMessage()
>
> And the individual error messages for each of your requests like this:
>
> data.get('your_id').getErrorMessage()
>
> Another very important point I'd like to emphasize is #2: use a Javascript
> console or debugger so you can see if you have any syntax errors or runtime
> errors!
>
> Again, congrats on the great post and keep up the good work! :)
>
> -
> Bruno Oliveira (Google)
>
>  --
> You received this message because you are subscribed to the Google Groups
> "orkut Developer Forum" group.
> To post to this group, send email to opensocial-orkut@googlegroups.com.
> To unsubscribe from this group, send email to
> opensocial-orkut+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/opensocial-orkut?hl=en.
>

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



[orkut-developer] REST: activities and list friends with filters

2011-04-25 Thread Roberto Scattini
  [familyName] => scattini
[givenName] => ricardo
        )
[displayName] => ricardo scattini
)
)
[updatedSince] =>
)
)
)


regards,


Roberto Scattini.

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



Re: [orkut-developer] Re: How to get replies to a single scrap?

2011-04-20 Thread Roberto Scattini
is there an equivalent to notifications (of myspace, for example) in orkut?

how do i send a user a link to accept a "gift" or stuff like that?
and invitations?

all this is done (i mean emulated) with requestsendmessage?

thanks!!!

2011/4/19 Robson Dantas 

> A possible way to do that is using Scrap activities, see here:
>
>
> http://code.google.com/p/orkut-os-client/source/browse/java/src/com/google/orkut/client/api/ScrapActivity.java
>
>
> 
> Best
>
> Robson Dantas
> @robsondantas
>
>
> On Tue, Apr 19, 2011 at 6:12 AM, Matthew Young  wrote:
>
>> can you get the scaps which you self sent to specific friend?
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "orkut Developer Forum" group.
>> To post to this group, send email to opensocial-orkut@googlegroups.com.
>> To unsubscribe from this group, send email to
>> opensocial-orkut+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/opensocial-orkut?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "orkut Developer Forum" group.
> To post to this group, send email to opensocial-orkut@googlegroups.com.
> To unsubscribe from this group, send email to
> opensocial-orkut+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/opensocial-orkut?hl=en.
>

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



[orkut-developer] posting REST activities

2011-04-20 Thread Roberto Scattini
hi all:

does anyone have this functionality working with php opensocial client in
orkut?

i keep getting the error:

*There was a 403 error with the createActivity request:
forbidden: Only activities for the viewer can be created or modified*


this is a log of the batch execution [consumer key obfuscated, the userId
without a zero at the beginning doesn't seems to make a difference, tested
both]

[1303143713] BATCH RPC
REQUEST:
Array
(
[0] => osapiRequest Object
(
[method] => activities.create
[params] => Array
(
[userId] => Array
(
[0] => 6064885595942683910
)

[groupId] => @self
[activity] => osapiActivity Object
(
[body] => osapi test activity body
[mediaItems] => Array
(
)

[title] => osapi test activity at 1303143712
)

[appId] => @app
)

[id] => createActivity
)

)

BATCH URL:
http://prod.sandbox.orkut.com/social/rpc?multi_post=&func=post_activity&oauth_nonce=314ac0489f6ffa947cdecc10b42374c5&oauth_version=1.0&oauth_timestamp=1303143712&oauth_consumer_key=MY_KEY&xoauth_requestor_id=06064885595942683910&oauth_body_hash=uLwJs1fF6upbJ2L32V1vXfTi0n0%3D&oauth_signature_method=HMAC-SHA1&oauth_signature=%2Frx6f5MK7ltHuS0BWGYkg3AjuCk%3D




if i change the userId to '@me' i get this:
*There was a 403 error with the createActivity request:
forbidden: Permission token validation failed*
*
*
*
*
*NOTE: *I am firing this createActivity with a javascript function in our
flash game, that access a special URL in our servers. then the servers do
the REST call. this works without problem to obtain a user personal data,
but not to do activities thing.
*
*
*
*
any help is appreciated!!!


--
Roberto Scattini

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



Re: [orkut-developer] API quota exceeded

2011-04-20 Thread Roberto Scattini
hi robson, i am using 2-legged auth.

now i have advanced a little, it was a problem of my own code.

one question: the users ids, always have a "0" at the beggining? they have a
fixed lenght?
i have some problems working with them!!

thanks in advance!!


2011/4/14 Robson Dantas 

> Are you using 2legged or 3legged oauth ?
>
> Message extracted from orkut-os-client readme file.
>
>  But if you need to use the 'orkut' logo (instead of the 'Powered by
>orkut' logo) and/or you hit the quota limits as defined in the
>Developer ToS (see above). Please get in touch with us at
>orkutapireque...@google.com for a contract.
>
>
> To check about quota, read 
> here:http://www.orkut.com/html/en-US/developer.terms.html
>
>
> *Restrictions on Usage*
>
>
> Google may, in it sole discretion, set a quota of operations on your API 
> usage. You shall not attempt to circumvent automated use-quota restrictions. 
> The following limits exist for the use of the API.
>
>-
>The number of active daily users cannot exceed 4K
>-
>The number of API requests per hour per user cannot 200
>-
>The number of API requests per day per user cannot exceed 1000
>-
>The number of API requests per hour cannot exceed 2K
>-
>The number of API requests per day cannot exceed 20K
>
> Robson Dantas
> @robsondantas
>
>
> On Wed, Apr 13, 2011 at 10:52 AM, Roberto Scattini <
> robert...@metrogames.com> wrote:
>
>> hi all,
>>
>> since today, i am having this in my development server.
>>
>> Error en OsapiMainWrapper::obtenerViewerUser al pedir , respuesta
>> obtenida: Array
>> (
>> [self] => osapiError Object
>> (
>> [errorCode:osapiError:private] => 403
>>         [errorMessage:osapiError:private] => forbidden: API quota
>> exceeded
>> [response] =>
>> )
>>
>> )
>>
>> what does this mean? which is the quota limit?
>>
>> thanks in advance!!!
>>
>>
>> --
>> Roberto Scattini
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "orkut Developer Forum" group.
>> To post to this group, send email to opensocial-orkut@googlegroups.com.
>> To unsubscribe from this group, send email to
>> opensocial-orkut+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/opensocial-orkut?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "orkut Developer Forum" group.
> To post to this group, send email to opensocial-orkut@googlegroups.com.
> To unsubscribe from this group, send email to
> opensocial-orkut+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/opensocial-orkut?hl=en.
>

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



[orkut-developer] API quota exceeded

2011-04-13 Thread Roberto Scattini
hi all,

since today, i am having this in my development server.

Error en OsapiMainWrapper::obtenerViewerUser al pedir , respuesta obtenida:
Array
(
[self] => osapiError Object
(
[errorCode:osapiError:private] => 403
[errorMessage:osapiError:private] => forbidden: API quota
exceeded
[response] =>
)

)

what does this mean? which is the quota limit?

thanks in advance!!!


--
Roberto Scattini

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



Re: [orkut-developer] Support plan for OAuth 2.0

2011-04-07 Thread Roberto Scattini
hi sung,

as i understand, orkut supports 2-legged OAuth only for applications living
"inside orkut".
for external applications, the only way to go is 3-legged OAuth.

hope it helps.


2011/4/4 Sung won Cho 

> Dear All.
> In orkut's documents, it said that the only way to authentication with
> OAuth is 2-legged OAuth is available.
> If orkur has plan to support OAuth 2.0, plz let me know about it.
>
> IF orkut already support, OAuth 2.0, can I know how should I fill "scope"
> of OAuth 2.0 request URI?
>
> As a result, I want to get access token of orkut APIs using OAuth 2.0.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "orkut Developer Forum" group.
> To post to this group, send email to opensocial-orkut@googlegroups.com.
> To unsubscribe from this group, send email to
> opensocial-orkut+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/opensocial-orkut?hl=en.
>

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



Re: [orkut-developer] Auth basic problem

2011-04-07 Thread Roberto Scattini
robson:

2011/4/5 Robson Dantas 

> If i were you, would try 3legged instead of 2legged. Basically, some
> features are not implemented on 2legged, sending scraps for example.
>
> Another thing is that you need an app running on orkut in order to make
> 2legged work.
>

yes, i have a game running (or trying to run) in orkut, so no problem here.


>
> Did you check the examples i provide in the 3legged ? See it up and
> running: www.dxs.com.br/os-3leg/test
>
> Regarding your problem, there are many factors. A quick fix should be
> replacing ' ' by '+' . See here:
>
> http://code.google.com/p/orkut-os-client-php/source/browse/trunk/lib/orkut-3legged.php#165
>
> Let
> me know how it goes.
>

this fix does not apply to 2-legged, dont?
if i decide to go for three legged, i will try your suggestions.

and about what i said of differences with php 5.2 and 5.3, *forget about
that*, i ran the osapi examples in a new enviroment with php5.3 and they
work OK (but not in the server i want them... :( )

any update i will post it here.

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



Re: [orkut-developer] Auth basic problem

2011-04-07 Thread Roberto Scattini
hey robson!

yes, we are using 2-legged. now that you mention it, i had read a thread not
so long ago about this, with you and fernando.

we are using 2-legged because the osapi-php-client didnt come with support
for "3-legged in orkut" and i dont have the time to investigate it further
to add an Orkut3Provider. i tried your library too, but i then i saw that
the examples coming with osapi-php DOES work (even with MY consumer key and
secret).

now my adventure has guided me to a extremely hideous problem, in some way
related to differences between php 5.2.6 and 5.3.X in rawurlencode
implementation... i say this becuase in my local xampp server (with php
5.2.6) the examples are working, but the same files in the test server (with
php 5.3) are giving me  "OAuth Authentication Failure".

do you have any advice on this?


thanks for your reply!


2011/4/4 Robson Dantas 

> Are you using the 2legged-api for PHP ? If so, there is a bug when getting
> tokens with space on it, which results problems when authenticating.
>
> BTW, why not using 3legged ?
>
> Best
>
> Robson Dantas
> @robsondantas
>
> On Wed, Mar 30, 2011 at 2:57 PM, Roberto Scattini <
> robert...@metrogames.com> wrote:
>
>> hi all, i am triying to get my friends list with my app in orkut via REST,
>> but osapi php client keeps giving errors like this:
>>
>> [INFO][Wed, 30 Mar 11 17:32:27 +] - HTTP Request [INFO][Wed, 30 Mar 11
>> 17:32:27 +] -
>>
>> *array*
>>   'url' => string 
>> 'http://sandbox.orkut.com/social/rpc?oauth_nonce=39ce3d04ae774905ad54c7c8f549c02d&oauth_version=1.0&oauth_timestamp=1301506347&oauth_consumer_key=orkut.com%3A734068883966&xoauth_requestor_id=06064885595942683910&oauth_body_hash=1NQPhQlfp5V%2BwCs1nb01%2BWj5VA8%3D&oauth_signature_method=HMAC-SHA1&oauth_signature=wSsIj4aUpg6pVMcfdzIFl1fnJ%2BY%3D'
>>  *(length=343)*
>>   'method' => string 'POST' *(length=4)*
>>   'body' => string 
>> '[{"method":"people.get","params":{"userId":["06064885595942683910"],"groupId":"@self","fields":"id,name"},"id":"self"}]'
>>  *(length=119)*
>>   'headers' =>
>> *array*
>>   0 => string 'Content-Type: application/json' *(length=30)*
>>
>> [INFO][Wed, 30 Mar 11 17:32:27 +] - HTTP Response [INFO][Wed, 30 Mar
>> 11 17:32:27 +] -
>>
>> *array*
>>   'http_code' => int 401
>>   'data' => string '
>> 
>> OAuth Authentication FailureOAuth Authentication Failure
>> 
>> 
>> OAuth Authentication FailureOAuth Authentication Failure
>> Error 401
>> 
>> 
>> ' *(length=235)*
>>   'headers' =>
>> *array*
>>   0 => string 'Content-Type: application/json' *(length=30)*
>>
>> *
>> *
>>
>> *
>> *
>>
>> which could be the problem? my app is a game running "inside" orkut, and
>> it is verified but not in testing nor published.
>> the most annoying thing is that the samples packed with
>> opensocial-php-client are running perfectly fine, but my app dont... :'(
>>
>> thanks in advance!!!
>>
>>
>> Roberto
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "orkut Developer Forum" group.
>> To post to this group, send email to opensocial-orkut@googlegroups.com.
>> To unsubscribe from this group, send email to
>> opensocial-orkut+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/opensocial-orkut?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "orkut Developer Forum" group.
> To post to this group, send email to opensocial-orkut@googlegroups.com.
> To unsubscribe from this group, send email to
> opensocial-orkut+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/opensocial-orkut?hl=en.
>

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



Re: [orkut-developer] Unable to send new apps

2011-04-01 Thread Roberto Scattini
hi everybody,

i have a similar problem here, in page Main#Developer, when i try to sumbit
my app i get the error: "Bad, bad server! No donut for you.". both in
sandbox and prod.sandbox.



@SomeGuy: are you trying with the new developer page?
http://prod.sandbox.orkut.com/Main#Developer


thanks!!


2011/3/25 SomeGuy 

> Hi,
>
> I've trying to submit for 5 days now.
>
> I've only got the same message: Unable to Retrieve.
>
> Already checked my xml file in  my browser, and it's just fine.
>
> Could you please take a look at that issue?
>
> It seems that I am the only one with this issue, cause I haven't seem
> any other posts about it.
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "orkut Developer Forum" group.
> To post to this group, send email to opensocial-orkut@googlegroups.com.
> To unsubscribe from this group, send email to
> opensocial-orkut+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/opensocial-orkut?hl=en.
>
>

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



[orkut-developer] Auth basic problem

2011-04-01 Thread Roberto Scattini
hi all, i am triying to get my friends list with my app in orkut via REST,
but osapi php client keeps giving errors like this:

[INFO][Wed, 30 Mar 11 17:32:27 +] - HTTP Request [INFO][Wed, 30 Mar 11
17:32:27 +] -

*array*
  'url' => string
'http://sandbox.orkut.com/social/rpc?oauth_nonce=39ce3d04ae774905ad54c7c8f549c02d&oauth_version=1.0&oauth_timestamp=1301506347&oauth_consumer_key=orkut.com%3A734068883966&xoauth_requestor_id=06064885595942683910&oauth_body_hash=1NQPhQlfp5V%2BwCs1nb01%2BWj5VA8%3D&oauth_signature_method=HMAC-SHA1&oauth_signature=wSsIj4aUpg6pVMcfdzIFl1fnJ%2BY%3D'
*(length=343)*
  'method' => string 'POST' *(length=4)*
  'body' => string
'[{"method":"people.get","params":{"userId":["06064885595942683910"],"groupId":"@self","fields":"id,name"},"id":"self"}]'
*(length=119)*
  'headers' =>
*array*
  0 => string 'Content-Type: application/json' *(length=30)*

[INFO][Wed, 30 Mar 11 17:32:27 +] - HTTP Response [INFO][Wed, 30 Mar 11
17:32:27 +] -

*array*
  'http_code' => int 401
  'data' => string '

OAuth Authentication FailureOAuth Authentication Failure


OAuth Authentication FailureOAuth Authentication Failure
Error 401


' *(length=235)*
  'headers' =>
*array*
  0 => string 'Content-Type: application/json' *(length=30)*

*
*

*
*

which could be the problem? my app is a game running "inside" orkut, and it
is verified but not in testing nor published.
the most annoying thing is that the samples packed with
opensocial-php-client are running perfectly fine, but my app dont... :'(

thanks in advance!!!


Roberto

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



Re: [orkut-developer] How to get an App ID???

2011-02-11 Thread Roberto Scattini
hi robson:

if i understand well... his app isnt approved yet, so, how could he access
his appId, where is it listed if the app isnt approved?


thanks!


2011/2/10 Robson Dantas 

> Come on. Stick to one thread and stop complaining.
>
> Orkut hasn´t changed everything. There are 2 sandboxes:
>
> - sandbox.orkut.com - fresh code is pushed to this environment
> - prod.sandbox.orkut.com - most stable
>
> When you are developing, suggest you using prod.sandbox.orkut.com
>
> The process is really simple:
>
> 1- You have to signup to sandbox in order to have access. If you did, you
> will be able to open http://sandbox.orkut.com or http://prod.sandbox.com.
>
> The page looks like exactly the same you see loggin on Orkut.com, except
> for the fact you can add applications on your profile without having to
> submit it for approval. So, when you create your app - which means basically
> a xml file - and want to test, just go to that page, and look to your left,
> under "apps" there is an "edit" button.
>
> You will see a textbox which you can enter your app url. If you want to add
> a test, go and add http://www.opensocial-br.org/exemplo/opensocialbr.xml .
>
> 2- When adding your app, on the same menu I described above you will see
> your app listed. Just click and you will be redirected to an url which will
> look like this:
>
> http://prod.sandbox.orkut.com/Main#Application?uid=16221122015155686667&appId=
> 950702661814&rl=ls
>
> appId is shown in the url - in this case 950702661814 .
>
> Let me know if it stills unclear for you, or if it helps.
>
> Best
>
> Robson Dantas
> @robsondantas
>
>
>
> 2011/2/10 as 
>
> Could you guys give to us a full, detail explantion on how to get an
>> app ID?
>> Also, wich the address for the sandbox? There are so many(none working
>> properly).
>> Bear with us that Orkut has changed everything (for worst by the way)
>> and no info (or documentation)
>> on that.
>> So basically we are working in the darkness.
>> Thanks
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "orkut Developer Forum" group.
>> To post to this group, send email to opensocial-orkut@googlegroups.com.
>> To unsubscribe from this group, send email to
>> opensocial-orkut+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/opensocial-orkut?hl=en.
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "orkut Developer Forum" group.
> To post to this group, send email to opensocial-orkut@googlegroups.com.
> To unsubscribe from this group, send email to
> opensocial-orkut+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/opensocial-orkut?hl=en.
>

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



Re: [orkut-developer] difficult start

2011-02-11 Thread Roberto Scattini
mmm, ok, so i must include the iframe in html, dont?

besides this, one of my firsts question still is unanswered: the "require"
tags enble the "automatic inclusion" of the necessary javascript libraries?

some clarification on this things will make life easier to other developers
that could be in the same situation.

also:
-where is posted that info about type=url disabled?
-where i can find a list of things that causes that an application doesnt
get approved? (i tested with probe and error, not very nice, more with the
problems in the appreviewer)

thanks in advance!!


2011/2/3 Bruno Oliveira 

> Btw, profile view won't work for anybody in the coming days (temporarily)
> :-)
> See Known Issue #K08.
>
> --
> You received this message because you are subscribed to the Google Groups
> "orkut Developer Forum" group.
> To post to this group, send email to opensocial-orkut@googlegroups.com.
> To unsubscribe from this group, send email to
> opensocial-orkut+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/opensocial-orkut?hl=en.
>

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



Re: [orkut-developer] difficult start

2011-02-02 Thread Roberto Scattini
hi prashant!!

ok, here is my xml:




http://orkut.musicame.com/juego-activo";
 author="Roberto Sca"
 author_email="robert...@metrogames.com"
 screenshot="http://orkut.musicame.com/royblack.jpg";
 thumbnail="http://orkut.musicame.com/avatar.jpg";>
 
 
 

http://orkut.musicame.com/juego-activo/"; />
MYKEY



anyway, do you know how it works?
how do I enable opensocial libs in my "external iframe app"? in myspace
(that uses opensocial too) they say you have to load some libraries in your
HTML, but they provide the links. I didnt find that anywhere in the
extensive orkut documentation.


thanks in advance!!


2011/2/2 Prashant­ Patil 

> Post your xml link that will help what you have used exactly in your code!!
> will let you know fixes!!
>
>
> On Fri, Jan 28, 2011 at 11:50 PM, Beto wrote:
>
>> hey guys!
>>
>> finally i have an app approved this week.
>>
>> it is an app with href="url" (this is, external iframe)
>>
>> the problem i have is very basic: it doesnt load opensocial javascript
>> libraries, and i cant get it working.
>>
>> AFAIK, the xml file MUST have a Require tag in ModulePrefs to load the
>> libraries
>>
>> is this true? my app has all this tags:
>>
>>
>>
>>
>>
>> but even with the simplest tests, i get "opensocial is not defined"
>> error...
>>
>> maybe i misunderstood some info in the documentation and this tags
>> doesnt generate the automatic load of the libraries...
>> in that case, where do i get the links to include the opensocial
>> javascript libraries "by hand" in my app?
>>
>> thanks in advance!!!
>>
>> ps: i think i posted this yesterday, but i dont see it...
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "orkut Developer Forum" group.
>> To post to this group, send email to opensocial-orkut@googlegroups.com.
>> To unsubscribe from this group, send email to
>> opensocial-orkut+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/opensocial-orkut?hl=en.
>>
>>
>
>
> --
> Regards
> Prashant P Patil aka Orkuteer
> http://goo.gl/S8Qq | http://goo.gl/Kr4G
>
>  --
> You received this message because you are subscribed to the Google Groups
> "orkut Developer Forum" group.
> To post to this group, send email to opensocial-orkut@googlegroups.com.
> To unsubscribe from this group, send email to
> opensocial-orkut+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/opensocial-orkut?hl=en.
>

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



[orkut-developer] difficult start

2011-02-01 Thread Roberto Scattini
hey guys!

finally i have an app approved this week.

it is an app with href="url" (this is, external iframe)

the problem i have is very basic: it doesnt load opensocial javascript
libraries, and i cant get it working.

AFAIK, the xml file MUST have a Require tag in ModulePrefs to load the
libraries

is this true? my app has all this tags:

 
 
 

but even with the simplest tests, i get "opensocial is not defined"
error...

maybe i misunderstood some info in the documentation and this tags
doesnt generate the automatic load of the libraries...
in that case, where do i get the links to include the opensocial
javascript libraries "by hand" in my app?

thanks in advance!!!

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



[orkut-developer] difficult start

2011-02-01 Thread Roberto Scattini
hey guys!

finally i have an app approved this week.

it is an app with href="url" (this is, external iframe)

the problem i have is very basic: it doesnt load opensocial javascript
libraries, and i cant get it working.

AFAIK, the xml file MUST have a Require tag in ModulePrefs to load the
libraries

is this true? my app has all this tags:

 
 
 

but even with the simplest tests, i get "opensocial is not defined" error...

maybe i misunderstood some info in the documentation and this tags doesnt
generate the automatic load of the libraries...
in that case, where do i get the links to include the opensocial javascript
libraries "by hand" in my app?

thanks in advance!!!




Roberto Scattini

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



[orkut-developer] Account Problem

2011-02-01 Thread Roberto Scattini
Hi.

i have my work account has a gmail account (with our own domain). i created
my orkut profile with this account, but some day i started to receive a
message when i logged in to orkut, saying that i had a conflict. the
suggestion was to change my account to a different gmail account, or an
account of a non google domain.

i used my hotmail account, and the change was done, but my orkut profile
still shows my old account, and when i want to change it, it doesnt appear
in the list
since the change, i cant access even the sandbox, keep getting "bad server,
no donut for you" error

so... how can i solve this problem? is related with the sandbox problem?

thanks, i didnt know where to ask...


roberto.

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