[orkut-developer] Re: Upload photo with 3LO
I'm having the same problem. Any suggestions? Thanks On 19 abr, 11:53, Sarvesh Exl wrote: > Hello Tiago, > > Thanks for replying. > > I tried the way you said : > > http://www.orkut.com/social/rpc?request=%5b%7b%22params%22%3a%7b%22gr... > > This is the URL I created with multipart/form-data request with one the part > as: > form-data;name=\"image1\";filename=\"uploaded\" > > But still I get this response back: > {"error":{"message":"unauthorized: Authentication > failed.","code":401}}{"message":"badRequest: Invalid input - -1","code":400} > > Can you help me out here? whats wrong with my request? > > Regards, > Sarvesh > > On Sat, Apr 16, 2011 at 9:53 AM, Tiago Silveira (Google) > wrote: > > > > > > > > > Hi, Sarvesh! I recently found that to successfully upload a photo you need > > to send a multipart request, but the JSON part of the request must go in the > > URL. So instead of: > > > --part type:application/json -- > > { method: 'mediaitems.create', ... } > > --part type:object/octet-stream -- > > [BLOB] > > > You move the request to the URL: > > > /social/rpc?request=URLEncode("{method: 'mediaitems.create', ... }") > > > This is how our client library does it: > > >http://www.google.com/codesearch/p?hl=en#FfgKrVcptGg/java/src/com/goo... > > > I've been scratching my head too. I imagine that our photo upload > > implementation predates the OpenSocial spec, and came at a time when Shindig > > didn't have multipart processing. But that's a conjecture, I was not there > > at the time. > > > -- > > 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] Re: Upload photo with 3LO
I'm having the same problem. Any suggestions? Thanks On 19 abr, 11:53, Sarvesh Exl wrote: > Hello Tiago, > > Thanks for replying. > > I tried the way you said : > > http://www.orkut.com/social/rpc?request=%5b%7b%22params%22%3a%7b%22gr... > > This is the URL I created with multipart/form-data request with one the part > as: > form-data;name=\"image1\";filename=\"uploaded\" > > But still I get this response back: > {"error":{"message":"unauthorized: Authentication > failed.","code":401}}{"message":"badRequest: Invalid input - -1","code":400} > > Can you help me out here? whats wrong with my request? > > Regards, > Sarvesh > > On Sat, Apr 16, 2011 at 9:53 AM, Tiago Silveira (Google) > wrote: > > > > > > > > > Hi, Sarvesh! I recently found that to successfully upload a photo you need > > to send a multipart request, but the JSON part of the request must go in the > > URL. So instead of: > > > --part type:application/json -- > > { method: 'mediaitems.create', ... } > > --part type:object/octet-stream -- > > [BLOB] > > > You move the request to the URL: > > > /social/rpc?request=URLEncode("{method: 'mediaitems.create', ... }") > > > This is how our client library does it: > > >http://www.google.com/codesearch/p?hl=en#FfgKrVcptGg/java/src/com/goo... > > > I've been scratching my head too. I imagine that our photo upload > > implementation predates the OpenSocial spec, and came at a time when Shindig > > didn't have multipart processing. But that's a conjecture, I was not there > > at the time. > > > -- > > 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: Acesso externo ao orkut
Para fazer os requests OAuth, existe o http://www.dotnetopenauth.net/ Abraços Em 11 de março de 2011 11:35, Bruno Oliveira ("btco") escreveu: > Sim, isso é possível! O que você precisa é acessar a API 3LO (3-legged > OAuth). > Você pode fazer os requests OAuth manualmente através do C# ou usar uma > biblioteca existente (não sei de cor, mas existem). Para os programadores em > Java, existe uma biblioteca cliente open-source que nós desenvolvemos em > conjunto com a comunidade aqui: > http://code.google.com/p/orkut-os-client > Este é o guia de uso dessa biblioteca. Mesmo se você não for usar Java, vale > a pena lê-lo porque ele dá uma idéia geral de como funciona o processo de > autenticação e realização de chamadas. > http://code.google.com/apis/orkut/docs/clientlib/intro.html > [@Robson, se você ler essa thread: você sabe o link de alguma biblioteca C# > para passar para ele?] > > -- > 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. > -- Rafael Bruno Diretor de Tecnologia Pareado.net -- 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: Orkut Upload Error: unauthorized: Authentication failed.
Any news on this bug? -- 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: Photo upload, response 404
Any news on this bug? -- 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: The method activity.create is either not implemented, or the app does not have access to it
I managed to find the error. The library (OpenSocial-net) did not create the JSON properly. Just replace "activity.create"by "activities.create" and "date"with "activity". Thanks for your help! 2011/2/3 Bruno Oliveira : > Hi, I just tested it via the client library and it works... perhaps there's > a syntax error in your JSON? > > -- > 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. > -- Rafael Bruno Diretor de Tecnologia Pareado.net -- 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] Upload photo with 3LO
Is it possible to upload pictures using an external site using 3LO? If so, how is an example of request? Thanks -- Rafael Bruno Diretor de Tecnologia Pareado.net -- 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: The method activity.create is either not implemented, or the app does not have access to it
Hello Bruno Same problem. I'm not using the sandbox, is an external website using 3LO. You can check out a test on the following page http://www.pareado.net/Orkut.aspx Thanks 2011/2/3 Bruno Oliveira : > Sandbox was a bit problematic these last few days, could you try again and > see if you get the same error? > > -- > 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. > -- Rafael Bruno Diretor de Tecnologia Pareado.net -- 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] The method activity.create is either not implemented, or the app does not have access to it
Hello, I am creating a web application that creates activity on orkut. I'm using c# 3LO with the following JSON: [{"id":"activities","method":"activity.create","params":{"userId":"@me","appId":"@app","data":"{"title\":"Title","body":"Test"}"}}] And the server returns the following message: [{"id":"activities","error":{"message":"badRequest: The method activity.create is either not implemented, or the app does not have access to it.","code":400}}] My website has already been registered and recognized by Google, what must I do to be able to create activities? Waiting for Reply Thanks, -- Rafael Bruno Diretor de Tecnologia Pareado.net -- 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.