[orkut-developer] Re: Server to Server Protocol

2011-02-11 Thread Fernando Uchiyama
It is a possibility (of only getting tokens without spaces), but did you look the SVN of the client or server implementation? I think they may have changed the server part. On Feb 11, 1:26 pm, Robson Dantas wrote: > Fernando, > > Actually I think you are just getting tokens without white spaces.

Re: [orkut-developer] Re: Server to Server Protocol

2011-02-11 Thread Robson Dantas
Fernando, Actually I think you are just getting tokens without white spaces. Looked onto the SVN repository and last patch is around 2009. So maybe it will break, again :) Robson Dantas @robsondantas 2011/2/11 Bruno Oliveira ("btco") > > Robson, I'm not sure but I think the guys from Orkut co

[orkut-developer] Re: Server to Server Protocol

2011-02-11 Thread Bruno Oliveira ("btco")
> Robson, I'm not sure but I think the guys from Orkut corrected this > bug (and if they did, it was just this last night). We did? That's great news! (orkut doesn't really handle authentication and tokens directly, as that's a different Google system, so maybe another team changed something)

[orkut-developer] Re: Server to Server Protocol

2011-02-11 Thread Fernando Uchiyama
Robson, I'm not sure but I think the guys from Orkut corrected this bug (and if they did, it was just this last night). I'm saying this because today I tested the old implementation (without replacing ' ' for '+') and for my surprise it is working! Do you know any kind of orkut changelog we can ver

Re: [orkut-developer] Re: Server to Server Protocol

2011-02-10 Thread Robson Dantas
I sent this patch to the project owner, but seems they didn´t apply it. It´s also good to note that using the standard classes provided in this lib, you will get some trouble to access some orkut information. For example, reading scraps will not work, there are some parameters missing for the rpc

[orkut-developer] Re: Server to Server Protocol

2011-02-10 Thread Fernando Uchiyama
Hi Robson, I just changed the method upgradeRequestToken() from osapiOAuth3Legged class (of Google's opensocial-php-client API) and now the authentication proccess is working smoothly!! What I did was to add lines 158 and 174 from your implementation (at http://code.google.com/p/orkut-os-client-p

Re: [orkut-developer] Re: Server to Server Protocol

2011-02-10 Thread Robson Dantas
Hi! opensocial-php-client is a library which was primarily design to be generic enough to run 2 or 3legged. But oauth version shipped, does not fix the space problem, that´s why you are getting problems on playground and on this library. If you wanna try a demo, see: http://www.dxs.com.br/os-3leg

[orkut-developer] Re: Server to Server Protocol

2011-02-10 Thread Fernando Uchiyama
Hi Robson! I`m using the library recommended by Google (opensocial-php-client). Downloaded from here: http://code.google.com/p/opensocial-php-client/ I think the OAuth playground uses this library too, thats why I can reproduce the error there. I will take a look at your suggestion to see if it

Re: [orkut-developer] Re: Server to Server Protocol

2011-02-10 Thread Robson Dantas
Fernando, Looks like you are using the PHP 2legged api. When I was creating the 3legged oauth library for PHP, got this issue several times, and found out that it was a bug on the library which is implementing the oauth mechanism. Basically, when you get a white space in a token, it should be rep

[orkut-developer] Re: Server to Server Protocol

2011-02-09 Thread Fernando Uchiyama
You don't need to try too much to reproduce it. If you enter in the 3- legged steps requesting the access token like twenty times, maybe 8 of them will fail. Before each test, remember to clear the storage (I'm using osapiFileStorage), so the Orkut library will not use a cached Access Token. On Fe

[orkut-developer] Re: Server to Server Protocol

2011-02-09 Thread Bruno Oliveira
Strange... I'm using the orkut client library and I always get a good access token from it. But granted, I've never tried several requests in quick succession to see how many succeed and how many fail. I'll try that and see if I get those errors. -- You received this message because you are su

[orkut-developer] Re: Server to Server Protocol

2011-02-09 Thread Fernando Uchiyama
Just a small correction. In the last message, when I wrote "Orkut server-to-server implementation", I meant to say "Orkut JSON-RPC API implementation" instead. -- You received this message because you are subscribed to the Google Groups "orkut Developer Forum" group. To post to this group, sen

[orkut-developer] Re: Server to Server Protocol

2011-02-09 Thread Fernando Uchiyama
Hi Bruno. I have tried your solution and it almost worked. It seems that Orkut's server-to-server implementation is bugged. What happens is that sometimes it works. But not all the times. I will describe the issue for you and tell you how to reproduce it. The problem is in the process of gettin

[orkut-developer] Re: Server to Server Protocol

2011-01-21 Thread Fernando Hidemi Uchiyama
Hi Bruno. Thanks a lot! On monday, first thing I will gonna do arriving at work is give a try at your hint. On Jan 21, 6:04 pm, Bruno Oliveira wrote: > Perhaps the Server-to-Server REST API is not what you are looking for. It is > intended mainly for gadgets that have their own server and that s

[orkut-developer] Re: Server to Server Protocol

2011-01-21 Thread Bruno Oliveira
Perhaps the Server-to-Server REST API is not what you are looking for. It is intended mainly for gadgets that have their own server and that server needs to retrieve some data. But from your description, it looks like what you are looking for is the JSON-RPC API. The best way to use it is throu