[OpenSocial] Re: provision for updating to the activity stream offline

2009-06-22 Thread Chris Chabot
Hey deostroll,

So, the opensocial client libraries would do what you want to achieve; You
can get a 2 legged OAuth token when you submit your app to use with the
library (see
http://sites.google.com/site/oauthgoog/2leggedoauth/2opensocialrestapi for a
explanation of what that does), and with that you can make server to server
REST calls to Orkut.

The one problem is that currently, Orkut doesn't support posting Activities
through the REST API's.. myspace, netlog, hi5 and a couple of others do, but
for orkut this is still work-in-progress. So unfortunately the scenario that
you want to achieve isn't possible right now.

   -- Chris

On Mon, Jun 22, 2009 at 6:27 AM, deostroll  wrote:

>
> I know very little of oauth. I understand its work-flow in a consumer-
> service provider scenario. Here I am trying to make orkut allow an
> external server gain access to a user profile so that it (the external
> server) can post to its activity stream. I don't know which is the
> service provider, or which is the consumer here. Another thing is
> oauth...I am not sure how oauth should play here?
>
> The workflow I intend for the app I am trying to build goes like this:
>
> 1. The user adds the application from the app directory
> 2. He is directed to a form (view) which collects details and asks him
> to allow this external server to post to the activity stream
> 3. Lets say he chooses 'Yes' and submits. That is the end of the users
> interaction with this orkut application.
>
> The rest of the work is to be done by the external server. This server
> is like a middle man. Actually the user posts to another site. The
> external service polls to see if the user has posted anything new. If
> yes, it should relay that information to that user's activity stream.
>
> 2 areas I want some guidance:
> a) in the orkut app what should happen when the user chooses a yes and
> submits?
> b) in the external server, once it has determined that a new post has
> been posted, how will it post to the user's activity stream?
>
> I realize that there is some oauth-stuff coming into the picture in
> the above two points. What are they? Thanx in advance.
>
> --deostroll
>
> PS: I am aware opensocial developers are on IRC. What hours are they
> online (in GMT)? Are they available on sundays too? Or specifically
> what days in a weeks are they on IRC?
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"OpenSocial Application Development" group.
To post to this group, send email to opensocial-api@googlegroups.com
To unsubscribe from this group, send email to 
opensocial-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/opensocial-api?hl=en
-~--~~~~--~~--~--~---



[OpenSocial] Re: provision for updating to the activity stream offline

2009-06-21 Thread deostroll

I know very little of oauth. I understand its work-flow in a consumer-
service provider scenario. Here I am trying to make orkut allow an
external server gain access to a user profile so that it (the external
server) can post to its activity stream. I don't know which is the
service provider, or which is the consumer here. Another thing is
oauth...I am not sure how oauth should play here?

The workflow I intend for the app I am trying to build goes like this:

1. The user adds the application from the app directory
2. He is directed to a form (view) which collects details and asks him
to allow this external server to post to the activity stream
3. Lets say he chooses 'Yes' and submits. That is the end of the users
interaction with this orkut application.

The rest of the work is to be done by the external server. This server
is like a middle man. Actually the user posts to another site. The
external service polls to see if the user has posted anything new. If
yes, it should relay that information to that user's activity stream.

2 areas I want some guidance:
a) in the orkut app what should happen when the user chooses a yes and
submits?
b) in the external server, once it has determined that a new post has
been posted, how will it post to the user's activity stream?

I realize that there is some oauth-stuff coming into the picture in
the above two points. What are they? Thanx in advance.

--deostroll

PS: I am aware opensocial developers are on IRC. What hours are they
online (in GMT)? Are they available on sundays too? Or specifically
what days in a weeks are they on IRC?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"OpenSocial Application Development" group.
To post to this group, send email to opensocial-api@googlegroups.com
To unsubscribe from this group, send email to 
opensocial-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/opensocial-api?hl=en
-~--~~~~--~~--~--~---



[OpenSocial] Re: provision for updating to the activity stream offline

2009-06-21 Thread Chris Chabot
Hey deostroll,

There is in fact, you can use OAuth to authenticate the user, save the
resulting access token, and re-use it to post activities through the
OpenSocial REST API.

All the implementation details have already been taken care of with the
opensocial client libraries, for links to the various language versions see:
http://blog.opensocial.org/2008/12/opensocial-now-friends-with-php-java.html

Do note however that not all social networks support this yet (though many
are working on implementing this), on netlog, myspace and hi5 this works
fine right now through 3 legged OAuth, but as I said, expect more to be
added to that list over time.

Hope that helps,

-- Chris


On Sun, Jun 21, 2009 at 2:02 PM, deostroll  wrote:

>
> hi is there anything in the current opensocial app architecture which
> allows external servers to post directly to the activity stream?
>
> --deostroll
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"OpenSocial Application Development" group.
To post to this group, send email to opensocial-api@googlegroups.com
To unsubscribe from this group, send email to 
opensocial-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/opensocial-api?hl=en
-~--~~~~--~~--~--~---