[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 biu.dan...@gmail.com wrote:
 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) bru...@google.com

   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)

  --
  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: 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
call.

Another thing is captcha handling. The library dont handle captchas issued
by Orkut. Go to the test website I sent you and send a scrap with some link
inside, and you will have a better understanding.

Best

Robson Dantas
@robsondantas

2011/2/10 Fernando Uchiyama fernandoserv...@gmail.com

 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-php/source/browse/trunk/lib/orkut-3legged.php#158
 ).

 Thanks a lot for your help guys. I really appreciated !

 Fernando Uchiyama

 On Feb 10, 11:12 am, Robson Dantas biu.dan...@gmail.com wrote:
  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/test/
 
  Try authenticating yourself many times, and you wont notice any error.
 Also,
  if you wanna take a look where I placed the fix, just follow this link:
 
  Line 158  174:
 http://code.google.com/p/orkut-os-client-php/source/browse/trunk/lib/...
 
  Best
 
  Robson Dantas
  @robsondantas
 
  2011/2/10 Fernando Uchiyama fernandoserv...@gmail.com
 
   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 works. BTW, I
   remember to have seen this substitution in a function called
   urlencode_rfc3986, replacing `+` with a white space.
 
   Do you think removing this substitution can fix the issue?
 
   Thanks,
   Fernando
 
   On Feb 10, 9:47 am, Robson Dantas biu.dan...@gmail.com wrote:
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
 replaced
   by
'+', but for some reason the library was not doing so. And in this
 case,
when signing using a white space, this error comes up. This explains
 why
   you
are getting intermitent errors.
 
Can you give more information about which lib are you using ? If you
 are
going to use 3legged, suggest you to use mine:
 
code.google.com/p/orkut-os-client-php
 
Best
 
Robson Dantas
@robsondantas
 
2011/2/9 Fernando Uchiyama fernandoserv...@gmail.com
 
 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 Feb 9, 4:45 pm, Bruno Oliveira bru...@google.com wrote:
  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 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 

[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 through the orkut Client 
Libraryhttp://code.google.com/orkut-os-client. 
There's a new library version coming up which will make things much easier 
to use, so if you want to wait a week or so before diving into the code, 
it's probably worth the wait.

-- 
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] 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 bru...@google.com 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 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 through the orkut Client 
 Libraryhttp://code.google.com/orkut-os-client.
 There's a new library version coming up which will make things much easier
 to use, so if you want to wait a week or so before diving into the code,
 it's probably worth the wait.

-- 
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.