Why wouldn’t the consumer key identify the app in both cases?
Paul - We don't get the appId from the auth context so that containers
can support more complex permissions. Say iLike wants to grab all the
activities for their top friends app, and in a separate call they want
to fetch all the activities for their super poke gadget. They should
be able to fetch both independently and shouldn't be tied by the auth
context.
Eventually I could even see some containers not checking the currently
authed app. You could just request activities from any app you like
and all requests would be approved. This could happen if, for example,
friend feed wanted to expose its data with the activities apis.
We could make this a query param, but if we do we should also make the
appdata urls include the appId as a query param instead of in the url.
They should be as symmetric as possible to reduce confusion for users
and implementors.
- Cassie
Louis and I seem to be the only +1s so we need 3 more.
Anybody wanna comment?
Thanks!
- Cassie
XRDS Type: http://ns.opensocial.org/activities/0.8
guid : Container-globally-unique user identifier; owner or recipient of the activity data, or @me to indicate the requestor should be used
selector : One ofappId : The app id to select activities for, or @app to indicate the currently requesting application.
Activity URI examples:
/activities/{guid}/@self -- Collection of activities generated by given user
/activities/{guid}/@self/{appid} -- Collection of activities generated by an app for a given user
/activities/{guid}/@friends -- Collection of activities for friends of the given user {guid}
/activities/{guid}/@friends/{appid} -- Collection of activities generated by an app for friends of the given user {guid}
/activities/{guid}/{groupid} -- Collection of activities for people in group {groupid} belonging to given user {uid}
/activities/{guid}/{groupid}/{appid} -- Collection of activities generated by an app for people in group {groupid} belonging to given user {uid}
/activities/{guid}/@self/{appid}/{activityid} -- Individual activity resource; usually discovered from collection
/activities/@supportedFields -- Returns all of the fields that the container supports on activity objects as an array in json and a repeated list in atom.
On Mon, Jul 28, 2008 at 6:57 PM, Cassie <do...@google.com> wrote:
On Mon, Jul 28, 2008 at 6:57 PM, Cassie <do...@google.com> wrote:
We have an issue with the URL of the form:
/activities/{guid}/@self/{appid}/{activityid}
We have a notion of a activity stream for a given date. On a given date, we have the N most recent activities. The N+1th activity causes the oldest activity to be pushed out of the stream. As such, an activityid does not have much meaning in our systems. The number of events is not fixed but is set depending on how many activities we can handle and still scale.
Within the documentation, there is a notion of an activity ID within the stream at http://code.google.com/apis/opensocial/docs/gdata/activities/developers_guide_protocol.html#Activities. The activity with ID a1 is always the newest activity. a2 would be the next youngest, and so on until we hit the limit. Between GETs, a particular ID may point to different activity content.
As a result, MySpace will probably not support this last URI. The URI does not make sense in our model. Activities are more like logging streams where they store some event in time.
We have an issue with the URL of the form:
/activities/{guid}/@self/{appid}/{activityid}
We have a notion of a activity stream for a given date. On a given date, we have the N most recent activities. The N+1th activity causes the oldest activity to be pushed out of the stream. As such, an activityid does not have much meaning in our systems. The number of events is not fixed but is set depending on how many activities we can handle and still scale.
Within the documentation, there is a notion of an activity ID within the stream at http://code.google.com/apis/opensocial/docs/gdata/activities/developers_guide_protocol.html#Activities. The activity with ID a1 is always the newest activity. a2 would be the next youngest, and so on until we hit the limit. Between GETs, a particular ID may point to different activity content.
As a result, MySpace will probably not support this last URI. The URI does not make sense in our model. Activities are more like logging streams where they store some event in time. We will need to make this last URI a MAY instead of a MUST in the spec.
From:
opensocial-an...@googlegroups.com
[mailto:opensocial-an...@googlegroups.com] On Behalf Of Evan
Gilbert
Sent: Tuesday, August 19, 2008 1:24 PM
To: opensocial-an...@googlegroups.com
Subject: Re: [0.8.1] Adding appId to the path of the activities urls
+1
John,
What is the use case for one particular event? Our rolling event log file is not to be used as the Application Data storage. Or Application User Data storage.
Our main use case is that the application developer can show the activity feed of its application on its own canvas. They don't have to host the data and/or implement this themselves.
Our smallest granularity of the event is per user\per day\per application\per template
This last categorization is something we have not really discussed. Every template, is its own category. So the ''RateMovie" template and the "BuyMovie" template, do not share the daily aggregation per sender of the event. But will become two individual events
Marco rated the movie "movie1," "movie2" and "movie3"
"movie3" got 4 stars.
Marco bought the movie "movie2" and "movie5"
Click "here" to comment on his purchase.
ME
From: John Panzer [mailto:jpa...@google.com]
Sent: Tuesday, August 19, 2008 3:48 PMCc: Marco Ensing