Orkut Application Platform

Activities

The activities collections are views on the whole set of activities from orkut users.

Methods

The current API only allows listing activities for a user and deleting individual activities.

list
Retrieves a list of activities.
delete
Deletes an existing activity, if the access controls allow it.

Resource Representations

An activity has three fundamental components: The actor (who performed the activity), the action performed, and the affected object.

{
  "kind": "orkut#activity",
  "title": string,
  "published": datetime,
  "updated": datetime,
  "id": string,
  "links": [
    {
      "href": string,
      "rel": string,
      "type": string,
      "title": string
    }
  ],
  "actor": {
    "id": string,
    "displayName": string,
    "url": string,
    "image": {
      "url": string
    }
  },
  "verb": string,
  "object": {
    "objectType": string,
    "content": string,
    "replies": {
      "totalItems": unsigned long,
      "url": string,
      "items": [
        comments Resource
      ]
    },
    "items": [
      {
        "objectType": string,
        "id": string,
        "displayName": string,
        "content": string,
        "person": {
          "id": string,
          "name": {
            "familyName": string,
            "givenName": string
          },
          "birthday": string,
          "gender": string,
          "url": string,
          "image": {
            "url": string
          }
        },
        "links": [
          {
            "href": string,
            "rel": string,
            "type": string,
            "title": string
          }
        ]
      }
    ]
  },
  "access": {
    "kind": "orkut#acl",
    "description": string,
    "totalParticipants": integer,
    "items": [
      {
        "type": string,
        "id": string
      }
    ]
  }
}
Property Name Value Description Notes
kind string The kind of activity. Always orkut#activity.
title string Title of the activity.
published datetime The time at which the activity was initially published.
updated datetime The time at which the activity was last updated.
id string The ID for the activity.
links[].href string URL of the link.
links[].rel string Relation between the resource and the parent object.
links[].type string Media type of the link.
links[].title string Title of the link.
actor nested object The person who performed the activity.
actor.id string Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
actor.displayName string The name of the author, suitable for display.
actor.url string The URL of the author who posted the comment [not yet implemented]
actor.image object Image data about the author.
actor.image.url string A URL that points to a thumbnail photo of the author.
object object The activity's object.
object.objectType string The type of the object affected by the activity. Clients can use this information to style the rendered activity object differently depending on the content.
object.content string The HTML-formatted content, suitable for display. When updating an activity's content, post the changes to this property, using the value of originalContent as a starting point. If the update is successful, the server adds HTML formatting and responds with this formatted content.
object.replies object Comments in reply to this activity.
object.replies.totalItems unsigned long Total number of comments.
object.replies.url string URL for the collection of comments in reply to this activity.
object.replies.items[] list The list of comments.
object.items[] list The list of additional items.
object.items[].objectType string The object type.
object.items[].id string The ID for the object.
object.items[].displayName string The title of the object.
object.items[].content string The HTML-formatted content, suitable for display. When updating an activity's content, post the changes to this property, using the value of originalContent as a starting point. If the update is successful, the server adds HTML formatting and responds with this formatted content.
object.items[].person nested object The person who is related with this activity, e.g. an Added User.
object.items[].person.name object An object that encapsulates the individual components of a person's name.
object.items[].person.name.familyName string The family name (last name) of this person.
object.items[].person.name.givenName string The given name (first name) of this person.
object.items[].person.birthday string The person's date of birth, represented as YYYY-MM-DD.
object.items[].person.gender string The person's gender. Values include "male", "female", and "other".
object.items[].person.url string The person's profile url. This is adapted from Google+ and was originaly introduced as extra OpenSocial convenience fields.
object.items[].person.image object The person's profile photo. This is adapted from Google+ and was originaly introduced as extra OpenSocial convenience fields.
object.items[].person.image.url string The URL of the person's profile photo.
object.items[].links[].href string URL of the link.
object.items[].links[].rel string Relation between the resource and the parent object.
object.items[].links[].type string Media type of the link.
object.items[].links[].title string Title of the link.
access nested object Identifies who has access to see this activity.
verb string This activity's verb, indicating what action was performed. Possible values are:
  • add - User added new content to profile or album, e.g. video, photo.
  • post - User publish content to the stream, e.g. status, scrap.
  • update - User commented on an activity.
  • make-friend - User added a new friend.
  • birthday - User has a birthday.
object.items[].person.id string The person's opensocial ID.
object.items[].community nested object The community which is related with this activity, e.g. a joined community.

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.