I have downloaded the "orkut-os-client" and executed the
"OrkutSample.java".
It throws the following exception(or shows the following things on
console)
"
Request:[{"params":
{"messageGroup":"birthdays","messageType":"notification","groupId":"@friends","userId":"@me"},"id":"0-
messages.get","method":"messages.get"}]
Exception in thread "main" java.lang.RuntimeException: Unexpected
exception while setting response
at
com.google.orkut.client.api.BatchTransaction.setResponse(BatchTransaction.java:
151)
at com.google.orkut.client.sample.Transport.run(Transport.java:104)
at
com.google.orkut.client.sample.FriendTxSample.fetchBirthayNotifications(FriendTxSample.java:
63)
at
com.google.orkut.client.sample.FriendTxSample.run(FriendTxSample.java:
40)
at com.google.orkut.client.sample.OrkutSample.run(OrkutSample.java:
37)
at com.google.orkut.client.sample.OrkutSample.main(OrkutSample.java:
51)
Caused by: org.json.me.JSONException: A JSONArray text must start with
'[' at character 0 of
at org.json.me.JSONTokener.syntaxError(JSONTokener.java:448)
at org.json.me.JSONArray.<init>(JSONArray.java:106)
at org.json.me.JSONArray.<init>(JSONArray.java:145)
at
com.google.orkut.client.api.BatchTransaction.setResponse(BatchTransaction.java:
141)
... 5 more
"
the reason for this exception is that the response is empty.
Can you help me in understanding the reason.
Thanks
On Apr 6, 10:31 pm, Robson Dantas <[email protected]> wrote:
> Hi sdg,
>
> They are not the same. First one is the *new* project which is being
> developed by orkut team, it´s not completely done yet, and supports 3legged
> auth, written in java
>
> The second one is restful based, and supports 2legged auth.
>
> So, answering your question, right now, just java version if you want to
> interact. Also note, if need to be whitelisted to use the new api.
>
> Regards,
>
> Robson Dantas
>
> 2010/4/5 sdg <[email protected]>
>
> > Hi Dhaval Pancholi, thank you for answering.
>
> > Can it only be done with Java then ? or would it be the same to use
> > this:http://code.google.com/p/opensocial-net-client/ ?
>
> > Thank you,
>
> > SDG
>
> > On 2 abr, 08:56, Dhaval Pancholi <[email protected]> wrote:
> > > Hi sdg,
> > > I have implemented Google friend connect in one project
> > and i
> > > really like your idea of integrating Google friend Connect with Orkut to
> > > publish user feeds,scraps share albums. Both are done stand alone.
> >http://fotoscrapr.appspot.com/HereGoogle guys have prepared a demo
> > example
> > > on scrapping friend a photo with help of stand alone site It definitely
> > uses
> > > o auth .
>
> > > Check out the link i gave you i think it would solve most of your
> > questions.
> > > It is implemented in Google App Engine. Google has Java client library to
> > > access Data whose link ishttp://code.google.com/p/orkut-os-client/
>
> > > Implementing this was always on my to do list but i could'nt do it if you
> > > want any help i would like to participate. Hope it helps
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Orkut Developer Forum" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<opensocial-orkut%[email protected]>
> > .
> > 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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/opensocial-orkut?hl=en.