Re: [orkut-developer] Re: messages.create

2011-04-04 Thread Allann Jones
Is possible to add support for simple ASCII emoticons on scraps? I
think a simple regex or a IF on scraps handling on the server side
just for these specific cases of Orkut emoticons set like [:)] [:D]
[;)] [:o] [:O] [:P] [8)] [/)] [:(] [:x] ...


Thank you.


On Sat, Apr 2, 2011 at 5:20 PM, Allann Jones allan...@gmail.com wrote:
 I am developing 3LO on embedded devices captcha is not so viable on
 some of it. I am not posting URLs, only single line with standard
 characters like:

 hello [:)] [;)] [:x] go home ...

 I think this is the minimal for single messages to get emoticons.


 Thank you very much for your response.



 On Sat, Apr 2, 2011 at 12:56 PM, Bruno Oliveira (btco)
 bru...@google.com wrote:
 Hello,
 You need to solve a captcha to post some content. The 3LO API may throw a
 captcha at you after any request, when it detects a usage pattern that
 requires that. For example, posting several requests in succession or
 posting requests with URL's are likely to trigger captchas.
 In this case, you must display the captcha image to the user, have him solve
 the captcha, and resubmit the request with the captcha solution.
 The captcha URL is included in the message (in this
 case, /social/pages/captcha?xid=1301692179602). And remember that you have
 to fetch this image with OAuth authentication (a simple HTTP fetch won't
 work).
 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.


-- 
--
Allann Jones

I received the fundamentals of my education in school, but that was
not enough. My real education, the superstructure, the details, the
true architecture, I got out of the public library. For an
impoverished child whose family could not afford to buy books, the
library was the open door to wonder and achievement, and I can never
be sufficiently grateful that I had the wit to charge through that
door and make the most of it. (from I. Asimov, 1994)

-- 
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: messages.create

2011-04-02 Thread Bruno Oliveira (btco)
Hello,

You need to solve a captcha to post some content. The 3LO API may throw a 
captcha at you after any request, when it detects a usage pattern that 
requires that. For example, posting several requests in succession or 
posting requests with URL's are likely to trigger captchas.

In this case, you must display the captcha image to the user, have him solve 
the captcha, and resubmit the request with the captcha solution.

The captcha URL is included in the message (in this case, 
/social/pages/captcha?xid=1301692179602). 
And remember that you have to fetch this image with OAuth authentication (a 
simple HTTP fetch won't work).

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.



[orkut-developer] Re: messages.create [:)]

2011-04-02 Thread Bruno Oliveira (btco)
Duplicate thread :-)
See answer on other thread.

-- 
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: messages.create

2011-04-02 Thread Allann Jones
I am developing 3LO on embedded devices captcha is not so viable on
some of it. I am not posting URLs, only single line with standard
characters like:

hello [:)] [;)] [:x] go home ...

I think this is the minimal for single messages to get emoticons.


Thank you very much for your response.



On Sat, Apr 2, 2011 at 12:56 PM, Bruno Oliveira (btco)
bru...@google.com wrote:
 Hello,
 You need to solve a captcha to post some content. The 3LO API may throw a
 captcha at you after any request, when it detects a usage pattern that
 requires that. For example, posting several requests in succession or
 posting requests with URL's are likely to trigger captchas.
 In this case, you must display the captcha image to the user, have him solve
 the captcha, and resubmit the request with the captcha solution.
 The captcha URL is included in the message (in this
 case, /social/pages/captcha?xid=1301692179602). And remember that you have
 to fetch this image with OAuth authentication (a simple HTTP fetch won't
 work).
 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.




-- 
--
Allann Jones

I received the fundamentals of my education in school, but that was
not enough. My real education, the superstructure, the details, the
true architecture, I got out of the public library. For an
impoverished child whose family could not afford to buy books, the
library was the open door to wonder and achievement, and I can never
be sufficiently grateful that I had the wit to charge through that
door and make the most of it. (from I. Asimov, 1994)

-- 
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: messages.create captcha

2010-07-15 Thread Prashant (Google)
Allann,

You'll have to use the same auth mechanism as in all other requests
for fetching the captcha URL too, using the security token you got.
You can refer to the example in the CaptchaServlet link posted above.

Prashant

On Jul 15, 1:54 am, Allann Jones allan...@gmail.com wrote:
 Sorry. httpd is a typo on mail message, I'm trying:

 http://sandbox.orkut.com/social/pages/captcha?xid=1234567890http://www.orkut.com/social/pages/captcha?xid=1234567890

 And getting 404 error.

 Thank you.

 2010/7/14 Allann Jones allan...@gmail.com:





  I'm getting the following response trying to create a message:

  {error:{message:unauthorized: 상자에 표시된 텍스트를
  입력하세요.,data:{errorType:requiresCaptcha,captchaUrl:/social/pages/c 
  aptcha?xid=1234567890,captchaToken:token1234567890},code:401}}

  I'm using sandbox, then I made a GET request to

  httpd://sandbox.orkut.com/social/pages/captcha?xid=1234567890

  then I get the  a 404 response error:

  HEAD
  TITLENot Found/TITLE
  /HEAD
  BODY BGCOLOR=#FF TEXT=#00
  H1Not Found/H1
  H2Error 404/H2
  /BODY
  /HTML

  The same occurs requesting to
  httpd://www.orkut.com/social/pages/captcha?xid=1234567890

  Where is the error that I am missing?

  2010/7/12 Robson Dantas biu.dan...@gmail.com:
  Aha!
  I got stuck with the same problem. No way, you will need to fetch the
  captcha, and it is random!
  Check more details here:
 http://orkut-os-client.googlecode.com/hg/README
  4. Captcha handling

The API may occasionally throw Captchas to validate that it's indeed 
  a
  human
issuing the requests, for example, for the very frequent scrap posts.
  Captchas
can be expected any time and, in general, every transaction should 
  ideally
  be
checked for a Captcha challenge.

A brief overview of how to handle a captcha can be found here:
   
  http://code.google.com/p/orkut-os-client/source/browse/java/src/com/g

A typical image URL returned from the challenge is
/social/pages/captcha?xid=yyy. That must be prefixed with the 
  endpoint URL
(http://www.orkut.com), and then the Captcha image must be retrieved 
  from
  the
complete URL (http://www.orkut.com/social/pages/captcha?xid=yyy) 
  using
  OAuth.

For a more concrete example, please refer to the source of our 
  reference
implementation -- Fotoscrapr -- that can be found at:
   
  http://code.google.com/p/orkut-os-client-greetings/source/browse/src/;

  Regards,

  Robson Dantas

  2010/7/12 Allann Jones allan...@gmail.com

  Hi. When I try to create (send) a message with the command:

  { 'method' : 'messages.create', 'userId':['1234567890'], 'params':
  {'groupId' : '@self', 'messageType':'public_message', 'message' : {
  'body' : 'Message body' } } }

  I get the following answer:

  {error:{message:unauthorized: 상자에 표시된 텍스트를

  입력하세요.,data:{errorType:requiresCaptcha,captchaUrl:/social/pages/c
   
  aptcha?xid=1258941489942,captchaToken:token1258941489942},code:401}}

  Is the command correct?

  Is possible to create a message without the need of a captcha image?
  If not, what the command to get the captcha image and validate the
  message to be created?

 --
 --
 Allann Jones

 I received the fundamentals of my education in school, but that was
 not enough. My real education, the superstructure, the details, the
 true architecture, I got out of the public library. For an
 impoverished child whose family could not afford to buy books, the
 library was the open door to wonder and achievement, and I can never
 be sufficiently grateful that I had the wit to charge through that
 door and make the most of it. (from I. Asimov, 1994)

-- 
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-or...@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: messages.create captcha

2010-07-15 Thread Robson Dantas
Allan,

Use OAuth to fetch the captcha (the same way you are using to call the rpc
message).

-Robson Dantas

2010/7/15 Prashant (Google) p...@google.com

 Allann,

 You'll have to use the same auth mechanism as in all other requests
 for fetching the captcha URL too, using the security token you got.
 You can refer to the example in the CaptchaServlet link posted above.

 Prashant

 On Jul 15, 1:54 am, Allann Jones allan...@gmail.com wrote:
  Sorry. httpd is a typo on mail message, I'm trying:
 
 
 http://sandbox.orkut.com/social/pages/captcha?xid=1234567890http://www.orkut.com/social/pages/captcha?xid=1234567890
 
  And getting 404 error.
 
  Thank you.
 
  2010/7/14 Allann Jones allan...@gmail.com:
 
 
 
 
 
   I'm getting the following response trying to create a message:
 
   {error:{message:unauthorized: 상자에 표시된 텍스트를
  
 입력하세요.,data:{errorType:requiresCaptcha,captchaUrl:/social/pages/c
 aptcha?xid=1234567890,captchaToken:token1234567890},code:401}}
 
   I'm using sandbox, then I made a GET request to
 
   httpd://sandbox.orkut.com/social/pages/captcha?xid=1234567890
 
   then I get the  a 404 response error:
 
   HEAD
   TITLENot Found/TITLE
   /HEAD
   BODY BGCOLOR=#FF TEXT=#00
   H1Not Found/H1
   H2Error 404/H2
   /BODY
   /HTML
 
   The same occurs requesting to
   httpd://www.orkut.com/social/pages/captcha?xid=1234567890
 
   Where is the error that I am missing?
 
   2010/7/12 Robson Dantas biu.dan...@gmail.com:
   Aha!
   I got stuck with the same problem. No way, you will need to fetch the
   captcha, and it is random!
   Check more details here:
  http://orkut-os-client.googlecode.com/hg/README
   4. Captcha handling
 
 The API may occasionally throw Captchas to validate that it's
 indeed a
   human
 issuing the requests, for example, for the very frequent scrap
 posts.
   Captchas
 can be expected any time and, in general, every transaction
 should ideally
   be
 checked for a Captcha challenge.
 
 A brief overview of how to handle a captcha can be found here:
  
 http://code.google.com/p/orkut-os-client/source/browse/java/src/com/g
 
 A typical image URL returned from the challenge is
 /social/pages/captcha?xid=yyy. That must be prefixed with the
 endpoint URL
 (http://www.orkut.com), and then the Captcha image must be
 retrieved from
   the
 complete URL (http://www.orkut.com/social/pages/captcha?xid=yyy)
 using
   OAuth.
 
 For a more concrete example, please refer to the source of our
 reference
 implementation -- Fotoscrapr -- that can be found at:
  
 http://code.google.com/p/orkut-os-client-greetings/source/browse/src/;
 
   Regards,
 
   Robson Dantas
 
   2010/7/12 Allann Jones allan...@gmail.com
 
   Hi. When I try to create (send) a message with the command:
 
   { 'method' : 'messages.create', 'userId':['1234567890'], 'params':
   {'groupId' : '@self', 'messageType':'public_message', 'message' : {
   'body' : 'Message body' } } }
 
   I get the following answer:
 
   {error:{message:unauthorized: 상자에 표시된 텍스트를
 
  
 입력하세요.,data:{errorType:requiresCaptcha,captchaUrl:/social/pages/c
 aptcha?xid=1258941489942,captchaToken:token1258941489942},code:401}}
 
   Is the command correct?
 
   Is possible to create a message without the need of a captcha image?
   If not, what the command to get the captcha image and validate the
   message to be created?
 
  --
  --
  Allann Jones
 
  I received the fundamentals of my education in school, but that was
  not enough. My real education, the superstructure, the details, the
  true architecture, I got out of the public library. For an
  impoverished child whose family could not afford to buy books, the
  library was the open door to wonder and achievement, and I can never
  be sufficiently grateful that I had the wit to charge through that
  door and make the most of it. (from I. Asimov, 1994)

 --
 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-or...@googlegroups.com.
 To unsubscribe from this group, send email to
 opensocial-orkut+unsubscr...@googlegroups.comopensocial-orkut%2bunsubscr...@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-or...@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.