Re: [orkut-developer] Auth basic problem

2011-04-07 Thread Roberto Scattini
robson:

2011/4/5 Robson Dantas biu.dan...@gmail.com

 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

 http://code.google.com/p/orkut-os-client-php/source/browse/trunk/lib/orkut-3legged.php#165Let
 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 biu.dan...@gmail.com

 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=39ce3d04ae774905ad54c7c8f549c02doauth_version=1.0oauth_timestamp=1301506347oauth_consumer_key=orkut.com%3A734068883966xoauth_requestor_id=06064885595942683910oauth_body_hash=1NQPhQlfp5V%2BwCs1nb01%2BWj5VA8%3Doauth_signature_method=HMAC-SHA1oauth_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 'HTML
 HEAD
 TITLEOAuth Authentication FailureOAuth Authentication Failure/TITLE
 /HEAD
 BODY BGCOLOR=#FF TEXT=#00
 H1OAuth Authentication FailureOAuth Authentication Failure/H1
 H2Error 401/H2
 /BODY
 /HTML
 ' *(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] Auth basic problem

2011-04-05 Thread 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.

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

http://code.google.com/p/orkut-os-client-php/source/browse/trunk/lib/orkut-3legged.php#165Let
me know how it goes.

Best

Robson Dantas
@robsondantas

On Mon, Apr 4, 2011 at 2:43 PM, Roberto Scattini
robert...@metrogames.comwrote:

 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 biu.dan...@gmail.com

 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=39ce3d04ae774905ad54c7c8f549c02doauth_version=1.0oauth_timestamp=1301506347oauth_consumer_key=orkut.com%3A734068883966xoauth_requestor_id=06064885595942683910oauth_body_hash=1NQPhQlfp5V%2BwCs1nb01%2BWj5VA8%3Doauth_signature_method=HMAC-SHA1oauth_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 'HTML
 HEAD
 TITLEOAuth Authentication FailureOAuth Authentication Failure/TITLE
 /HEAD
 BODY BGCOLOR=#FF TEXT=#00
 H1OAuth Authentication FailureOAuth Authentication Failure/H1
 H2Error 401/H2
 /BODY
 /HTML
 ' *(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] Auth basic problem

2011-04-05 Thread Robson Dantas
Roberto, yes works.

Just find the similar line on 2legged. My library was based in this one.

You will notice that the errors are intermitent. Sometimes you get,
sometimes, not.

Best

Robson Dantas
@robsondantas

On Tue, Apr 5, 2011 at 12:26 PM, Roberto Scattini
robert...@metrogames.comwrote:

 robson:

 2011/4/5 Robson Dantas biu.dan...@gmail.com

 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

 http://code.google.com/p/orkut-os-client-php/source/browse/trunk/lib/orkut-3legged.php#165Let
 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-04 Thread 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.comwrote:

 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=39ce3d04ae774905ad54c7c8f549c02doauth_version=1.0oauth_timestamp=1301506347oauth_consumer_key=orkut.com%3A734068883966xoauth_requestor_id=06064885595942683910oauth_body_hash=1NQPhQlfp5V%2BwCs1nb01%2BWj5VA8%3Doauth_signature_method=HMAC-SHA1oauth_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 'HTML
 HEAD
 TITLEOAuth Authentication FailureOAuth Authentication Failure/TITLE
 /HEAD
 BODY BGCOLOR=#FF TEXT=#00
 H1OAuth Authentication FailureOAuth Authentication Failure/H1
 H2Error 401/H2
 /BODY
 /HTML
 ' *(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.



[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=39ce3d04ae774905ad54c7c8f549c02doauth_version=1.0oauth_timestamp=1301506347oauth_consumer_key=orkut.com%3A734068883966xoauth_requestor_id=06064885595942683910oauth_body_hash=1NQPhQlfp5V%2BwCs1nb01%2BWj5VA8%3Doauth_signature_method=HMAC-SHA1oauth_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 'HTML
HEAD
TITLEOAuth Authentication FailureOAuth Authentication Failure/TITLE
/HEAD
BODY BGCOLOR=#FF TEXT=#00
H1OAuth Authentication FailureOAuth Authentication Failure/H1
H2Error 401/H2
/BODY
/HTML
' *(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.