orkut

package
v0.0.0-...-976d7dd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2014 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Overview

Package orkut provides access to the Orkut API.

See http://code.google.com/apis/orkut/v2/reference.html

Usage example:

import "code.google.com/p/google-api-go-client/orkut/v2"
...
orkutService, err := orkut.New(oauthHttpClient)

Index

Constants

View Source
const (
	// Manage your Orkut activity
	OrkutScope = "https://www.googleapis.com/auth/orkut"

	// View your Orkut data
	OrkutReadonlyScope = "https://www.googleapis.com/auth/orkut.readonly"
)

OAuth2 scopes used by this API.

Variables

This section is empty.

Functions

This section is empty.

Types

type Acl

type Acl struct {
	// Description: Human readable description of the access granted.
	Description string `json:"description,omitempty"`

	// Items: The list of ACL entries.
	Items []*AclItems `json:"items,omitempty"`

	// Kind: Identifies this resource as an access control list. Value:
	// "orkut#acl"
	Kind string `json:"kind,omitempty"`

	// TotalParticipants: The total count of participants of the parent
	// resource.
	TotalParticipants int64 `json:"totalParticipants,omitempty"`
}

type AclDeleteCall

type AclDeleteCall struct {
	// contains filtered or unexported fields
}

func (*AclDeleteCall) Do

func (c *AclDeleteCall) Do() error

type AclItems

type AclItems struct {
	// Id: The ID of the entity. For entities of type "person" or "circle",
	// this is the ID of the resource. For other types, this will be unset.
	Id string `json:"id,omitempty"`

	// Type: The type of entity to whom access is granted.
	Type string `json:"type,omitempty"`
}

type AclService

type AclService struct {
	// contains filtered or unexported fields
}

func NewAclService

func NewAclService(s *Service) *AclService

func (*AclService) Delete

func (r *AclService) Delete(activityId string, userId string) *AclDeleteCall

Delete: Excludes an element from the ACL of the activity.

type ActivitiesDeleteCall

type ActivitiesDeleteCall struct {
	// contains filtered or unexported fields
}

func (*ActivitiesDeleteCall) Do

func (c *ActivitiesDeleteCall) Do() error

type ActivitiesListCall

type ActivitiesListCall struct {
	// contains filtered or unexported fields
}

func (*ActivitiesListCall) Do

func (*ActivitiesListCall) Hl

Hl sets the optional parameter "hl": Specifies the interface language (host language) of your user interface.

func (*ActivitiesListCall) MaxResults

func (c *ActivitiesListCall) MaxResults(maxResults int64) *ActivitiesListCall

MaxResults sets the optional parameter "maxResults": The maximum number of activities to include in the response.

func (*ActivitiesListCall) PageToken

func (c *ActivitiesListCall) PageToken(pageToken string) *ActivitiesListCall

PageToken sets the optional parameter "pageToken": A continuation token that allows pagination.

type ActivitiesService

type ActivitiesService struct {
	// contains filtered or unexported fields
}

func NewActivitiesService

func NewActivitiesService(s *Service) *ActivitiesService

func (*ActivitiesService) Delete

func (r *ActivitiesService) Delete(activityId string) *ActivitiesDeleteCall

Delete: Deletes an existing activity, if the access controls allow it.

func (*ActivitiesService) List

func (r *ActivitiesService) List(userId string, collection string) *ActivitiesListCall

List: Retrieves a list of activities.

type Activity

type Activity struct {
	// Access: Identifies who has access to see this activity.
	Access *Acl `json:"access,omitempty"`

	// Actor: The person who performed the activity.
	Actor *OrkutAuthorResource `json:"actor,omitempty"`

	// Id: The ID for the activity.
	Id string `json:"id,omitempty"`

	// Kind: The kind of activity. Always orkut#activity.
	Kind string `json:"kind,omitempty"`

	// Links: Links to resources related to this activity.
	Links []*OrkutLinkResource `json:"links,omitempty"`

	// Object: The activity's object.
	Object *ActivityObject `json:"object,omitempty"`

	// Published: The time at which the activity was initially published.
	Published string `json:"published,omitempty"`

	// Title: Title of the activity.
	Title string `json:"title,omitempty"`

	// Updated: The time at which the activity was last updated.
	Updated string `json:"updated,omitempty"`

	// Verb: 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.
	Verb string `json:"verb,omitempty"`
}

type ActivityList

type ActivityList struct {
	// Items: List of activities retrieved.
	Items []*Activity `json:"items,omitempty"`

	// Kind: Identifies this resource as a collection of activities. Value:
	// "orkut#activityList"
	Kind string `json:"kind,omitempty"`

	// NextPageToken: The value of pageToken query parameter in
	// activities.list request to get the next page, if there are more to
	// retrieve.
	NextPageToken string `json:"nextPageToken,omitempty"`
}

type ActivityObject

type ActivityObject struct {
	// Content: 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.
	Content string `json:"content,omitempty"`

	// Items: The list of additional items.
	Items []*OrkutActivityobjectsResource `json:"items,omitempty"`

	// ObjectType: 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.
	ObjectType string `json:"objectType,omitempty"`

	// Replies: Comments in reply to this activity.
	Replies *ActivityObjectReplies `json:"replies,omitempty"`
}

type ActivityObjectReplies

type ActivityObjectReplies struct {
	// Items: The list of comments.
	Items []*Comment `json:"items,omitempty"`

	// TotalItems: Total number of comments.
	TotalItems uint64 `json:"totalItems,omitempty,string"`

	// Url: URL for the collection of comments in reply to this activity.
	Url string `json:"url,omitempty"`
}

type ActivityVisibilityGetCall

type ActivityVisibilityGetCall struct {
	// contains filtered or unexported fields
}

func (*ActivityVisibilityGetCall) Do

type ActivityVisibilityPatchCall

type ActivityVisibilityPatchCall struct {
	// contains filtered or unexported fields
}

func (*ActivityVisibilityPatchCall) Do

type ActivityVisibilityService

type ActivityVisibilityService struct {
	// contains filtered or unexported fields
}

func NewActivityVisibilityService

func NewActivityVisibilityService(s *Service) *ActivityVisibilityService

func (*ActivityVisibilityService) Get

Get: Gets the visibility of an existing activity.

func (*ActivityVisibilityService) Patch

func (r *ActivityVisibilityService) Patch(activityId string, visibility *Visibility) *ActivityVisibilityPatchCall

Patch: Updates the visibility of an existing activity. This method supports patch semantics.

func (*ActivityVisibilityService) Update

func (r *ActivityVisibilityService) Update(activityId string, visibility *Visibility) *ActivityVisibilityUpdateCall

Update: Updates the visibility of an existing activity.

type ActivityVisibilityUpdateCall

type ActivityVisibilityUpdateCall struct {
	// contains filtered or unexported fields
}

func (*ActivityVisibilityUpdateCall) Do

type Badge

type Badge struct {
	BadgeLargeLogo string `json:"badgeLargeLogo,omitempty"`

	BadgeSmallLogo string `json:"badgeSmallLogo,omitempty"`

	// Caption: The name of the badge, suitable for display.
	Caption string `json:"caption,omitempty"`

	// Description: The description for the badge, suitable for display.
	Description string `json:"description,omitempty"`

	// Id: The unique ID for the badge.
	Id int64 `json:"id,omitempty,string"`

	// Kind: Identifies this resource as a badge. Value: "orkut#badge"
	Kind string `json:"kind,omitempty"`

	SponsorLogo string `json:"sponsorLogo,omitempty"`

	// SponsorName: The name of the badge sponsor, suitable for display.
	SponsorName string `json:"sponsorName,omitempty"`

	// SponsorUrl: The URL for the badge sponsor.
	SponsorUrl string `json:"sponsorUrl,omitempty"`
}

type BadgeList

type BadgeList struct {
	// Items: List of badges retrieved.
	Items []*Badge `json:"items,omitempty"`

	// Kind: Identifies this resource as a collection of badges. Value:
	// "orkut#badgeList"
	Kind string `json:"kind,omitempty"`
}

type BadgesGetCall

type BadgesGetCall struct {
	// contains filtered or unexported fields
}

func (*BadgesGetCall) Do

func (c *BadgesGetCall) Do() (*Badge, error)

type BadgesListCall

type BadgesListCall struct {
	// contains filtered or unexported fields
}

func (*BadgesListCall) Do

func (c *BadgesListCall) Do() (*BadgeList, error)

type BadgesService

type BadgesService struct {
	// contains filtered or unexported fields
}

func NewBadgesService

func NewBadgesService(s *Service) *BadgesService

func (*BadgesService) Get

func (r *BadgesService) Get(userId string, badgeId int64) *BadgesGetCall

Get: Retrieves a badge from a user.

func (*BadgesService) List

func (r *BadgesService) List(userId string) *BadgesListCall

List: Retrieves the list of visible badges of a user.

type Comment

type Comment struct {
	// Actor: The person who posted the comment.
	Actor *OrkutAuthorResource `json:"actor,omitempty"`

	// Content: The content of the comment in text/html
	Content string `json:"content,omitempty"`

	// Id: The unique ID for the comment.
	Id string `json:"id,omitempty"`

	// InReplyTo: Link to the original activity where this comment was
	// posted.
	InReplyTo *CommentInReplyTo `json:"inReplyTo,omitempty"`

	// Kind: Identifies this resource as a comment. Value: "orkut#comment"
	Kind string `json:"kind,omitempty"`

	// Links: List of resources for the comment.
	Links []*OrkutLinkResource `json:"links,omitempty"`

	// Published: The time the comment was initially published, in RFC 3339
	// format.
	Published string `json:"published,omitempty"`
}

type CommentInReplyTo

type CommentInReplyTo struct {
	// Href: Link to the post on activity stream being commented.
	Href string `json:"href,omitempty"`

	// Ref: Unique identifier of the post on activity stream being
	// commented.
	Ref string `json:"ref,omitempty"`

	// Rel: Relationship between the comment and the post on activity stream
	// being commented. Always inReplyTo.
	Rel string `json:"rel,omitempty"`

	// Type: Type of the post on activity stream being commented. Always
	// text/html.
	Type string `json:"type,omitempty"`
}

type CommentList

type CommentList struct {
	// Items: List of comments retrieved.
	Items []*Comment `json:"items,omitempty"`

	// Kind: Identifies this resource as a collection of comments. Value:
	// "orkut#commentList"
	Kind string `json:"kind,omitempty"`

	// NextPageToken: The value of pageToken query parameter in
	// comments.list request to get the next page, if there are more to
	// retrieve.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// PreviousPageToken: The value of pageToken query parameter in
	// comments.list request to get the previous page, if there are more to
	// retrieve.
	PreviousPageToken string `json:"previousPageToken,omitempty"`
}

type CommentsDeleteCall

type CommentsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*CommentsDeleteCall) Do

func (c *CommentsDeleteCall) Do() error

type CommentsGetCall

type CommentsGetCall struct {
	// contains filtered or unexported fields
}

func (*CommentsGetCall) Do

func (c *CommentsGetCall) Do() (*Comment, error)

func (*CommentsGetCall) Hl

Hl sets the optional parameter "hl": Specifies the interface language (host language) of your user interface.

type CommentsInsertCall

type CommentsInsertCall struct {
	// contains filtered or unexported fields
}

func (*CommentsInsertCall) Do

func (c *CommentsInsertCall) Do() (*Comment, error)

type CommentsListCall

type CommentsListCall struct {
	// contains filtered or unexported fields
}

func (*CommentsListCall) Do

func (c *CommentsListCall) Do() (*CommentList, error)

func (*CommentsListCall) Hl

Hl sets the optional parameter "hl": Specifies the interface language (host language) of your user interface.

func (*CommentsListCall) MaxResults

func (c *CommentsListCall) MaxResults(maxResults int64) *CommentsListCall

MaxResults sets the optional parameter "maxResults": The maximum number of activities to include in the response.

func (*CommentsListCall) OrderBy

func (c *CommentsListCall) OrderBy(orderBy string) *CommentsListCall

OrderBy sets the optional parameter "orderBy": Sort search results.

func (*CommentsListCall) PageToken

func (c *CommentsListCall) PageToken(pageToken string) *CommentsListCall

PageToken sets the optional parameter "pageToken": A continuation token that allows pagination.

type CommentsService

type CommentsService struct {
	// contains filtered or unexported fields
}

func NewCommentsService

func NewCommentsService(s *Service) *CommentsService

func (*CommentsService) Delete

func (r *CommentsService) Delete(commentId string) *CommentsDeleteCall

Delete: Deletes an existing comment.

func (*CommentsService) Get

func (r *CommentsService) Get(commentId string) *CommentsGetCall

Get: Retrieves an existing comment.

func (*CommentsService) Insert

func (r *CommentsService) Insert(activityId string, comment *Comment) *CommentsInsertCall

Insert: Inserts a new comment to an activity.

func (*CommentsService) List

func (r *CommentsService) List(activityId string) *CommentsListCall

List: Retrieves a list of comments, possibly filtered.

type CommunitiesGetCall

type CommunitiesGetCall struct {
	// contains filtered or unexported fields
}

func (*CommunitiesGetCall) Do

func (c *CommunitiesGetCall) Do() (*Community, error)

func (*CommunitiesGetCall) Hl

Hl sets the optional parameter "hl": Specifies the interface language (host language) of your user interface.

type CommunitiesListCall

type CommunitiesListCall struct {
	// contains filtered or unexported fields
}

func (*CommunitiesListCall) Do

func (*CommunitiesListCall) Hl

Hl sets the optional parameter "hl": Specifies the interface language (host language) of your user interface.

func (*CommunitiesListCall) MaxResults

func (c *CommunitiesListCall) MaxResults(maxResults int64) *CommunitiesListCall

MaxResults sets the optional parameter "maxResults": The maximum number of communities to include in the response.

func (*CommunitiesListCall) OrderBy

func (c *CommunitiesListCall) OrderBy(orderBy string) *CommunitiesListCall

OrderBy sets the optional parameter "orderBy": How to order the communities by.

type CommunitiesService

type CommunitiesService struct {
	// contains filtered or unexported fields
}

func NewCommunitiesService

func NewCommunitiesService(s *Service) *CommunitiesService

func (*CommunitiesService) Get

func (r *CommunitiesService) Get(communityId int64) *CommunitiesGetCall

Get: Retrieves the basic information (aka. profile) of a community.

func (*CommunitiesService) List

List: Retrieves the list of communities the current user is a member of.

type Community

type Community struct {
	// Category: The category of the community.
	Category string `json:"category,omitempty"`

	// Co_owners: The co-owners of the community.
	Co_owners []*OrkutAuthorResource `json:"co_owners,omitempty"`

	// Creation_date: The time the community was created, in RFC 3339
	// format.
	Creation_date string `json:"creation_date,omitempty"`

	// Description: The description of the community.
	Description string `json:"description,omitempty"`

	// Id: The id of the community.
	Id int64 `json:"id,omitempty"`

	// Kind: Identifies this resource as a community. Value:
	// "orkut#community"
	Kind string `json:"kind,omitempty"`

	// Language: The official language of the community.
	Language string `json:"language,omitempty"`

	// Links: List of resources for the community.
	Links []*OrkutLinkResource `json:"links,omitempty"`

	// Location: The location of the community.
	Location string `json:"location,omitempty"`

	// Member_count: The number of users who are part of the community. This
	// number may be approximate, so do not rely on it for iteration.
	Member_count int64 `json:"member_count,omitempty"`

	// Moderators: The list of moderators of the community.
	Moderators []*OrkutAuthorResource `json:"moderators,omitempty"`

	// Name: The name of the community.
	Name string `json:"name,omitempty"`

	// Owner: The person who owns the community.
	Owner *OrkutAuthorResource `json:"owner,omitempty"`

	// Photo_url: The photo of the community.
	Photo_url string `json:"photo_url,omitempty"`
}

type CommunityFollowDeleteCall

type CommunityFollowDeleteCall struct {
	// contains filtered or unexported fields
}

func (*CommunityFollowDeleteCall) Do

type CommunityFollowInsertCall

type CommunityFollowInsertCall struct {
	// contains filtered or unexported fields
}

func (*CommunityFollowInsertCall) Do

type CommunityFollowService

type CommunityFollowService struct {
	// contains filtered or unexported fields
}

func NewCommunityFollowService

func NewCommunityFollowService(s *Service) *CommunityFollowService

func (*CommunityFollowService) Delete

func (r *CommunityFollowService) Delete(communityId int64, userId string) *CommunityFollowDeleteCall

Delete: Removes a user from the followers of a community.

func (*CommunityFollowService) Insert

func (r *CommunityFollowService) Insert(communityId int64, userId string) *CommunityFollowInsertCall

Insert: Adds a user as a follower of a community.

type CommunityList

type CommunityList struct {
	// Items: List of communities retrieved.
	Items []*Community `json:"items,omitempty"`

	// Kind: Identifies this resource as a collection of communities. Value:
	// "orkut#communityList"
	Kind string `json:"kind,omitempty"`
}

type CommunityMembers

type CommunityMembers struct {
	// CommunityMembershipStatus: Status and permissions of the user related
	// to the community.
	CommunityMembershipStatus *CommunityMembershipStatus `json:"communityMembershipStatus,omitempty"`

	// Kind: Kind of this item. Always orkut#communityMembers.
	Kind string `json:"kind,omitempty"`

	// Person: Description of the community member.
	Person *OrkutActivitypersonResource `json:"person,omitempty"`
}

type CommunityMembersDeleteCall

type CommunityMembersDeleteCall struct {
	// contains filtered or unexported fields
}

func (*CommunityMembersDeleteCall) Do

type CommunityMembersGetCall

type CommunityMembersGetCall struct {
	// contains filtered or unexported fields
}

func (*CommunityMembersGetCall) Do

func (*CommunityMembersGetCall) Hl

Hl sets the optional parameter "hl": Specifies the interface language (host language) of your user interface.

type CommunityMembersInsertCall

type CommunityMembersInsertCall struct {
	// contains filtered or unexported fields
}

func (*CommunityMembersInsertCall) Do

type CommunityMembersList

type CommunityMembersList struct {
	// FirstPageToken: The value of pageToken query parameter in
	// community_members.list request to get the first page.
	FirstPageToken string `json:"firstPageToken,omitempty"`

	// Items: List of community members retrieved.
	Items []*CommunityMembers `json:"items,omitempty"`

	// Kind: Kind of this item. Always orkut#communityMembersList.
	Kind string `json:"kind,omitempty"`

	// LastPageToken: The value of pageToken query parameter in
	// community_members.list request to get the last page.
	LastPageToken string `json:"lastPageToken,omitempty"`

	// NextPageToken: The value of pageToken query parameter in
	// community_members.list request to get the next page, if there are
	// more to retrieve.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// PrevPageToken: The value of pageToken query parameter in
	// community_members.list request to get the previous page, if there are
	// more to retrieve.
	PrevPageToken string `json:"prevPageToken,omitempty"`
}

type CommunityMembersListCall

type CommunityMembersListCall struct {
	// contains filtered or unexported fields
}

func (*CommunityMembersListCall) Do

func (*CommunityMembersListCall) FriendsOnly

func (c *CommunityMembersListCall) FriendsOnly(friendsOnly bool) *CommunityMembersListCall

FriendsOnly sets the optional parameter "friendsOnly": Whether to list only community members who are friends of the user.

func (*CommunityMembersListCall) Hl

Hl sets the optional parameter "hl": Specifies the interface language (host language) of your user interface.

func (*CommunityMembersListCall) MaxResults

func (c *CommunityMembersListCall) MaxResults(maxResults int64) *CommunityMembersListCall

MaxResults sets the optional parameter "maxResults": The maximum number of members to include in the response.

func (*CommunityMembersListCall) PageToken

func (c *CommunityMembersListCall) PageToken(pageToken string) *CommunityMembersListCall

PageToken sets the optional parameter "pageToken": A continuation token that allows pagination.

type CommunityMembersService

type CommunityMembersService struct {
	// contains filtered or unexported fields
}

func NewCommunityMembersService

func NewCommunityMembersService(s *Service) *CommunityMembersService

func (*CommunityMembersService) Delete

func (r *CommunityMembersService) Delete(communityId int64, userId string) *CommunityMembersDeleteCall

Delete: Makes the user leave a community.

func (*CommunityMembersService) Get

func (r *CommunityMembersService) Get(communityId int64, userId string) *CommunityMembersGetCall

Get: Retrieves the relationship between a user and a community.

func (*CommunityMembersService) Insert

func (r *CommunityMembersService) Insert(communityId int64, userId string) *CommunityMembersInsertCall

Insert: Makes the user join a community.

func (*CommunityMembersService) List

List: Lists members of a community. Use the pagination tokens to retrieve the full list; do not rely on the member count available in the community profile information to know when to stop iterating, as that count may be approximate.

type CommunityMembershipStatus

type CommunityMembershipStatus struct {
	// CanCreatePoll: Whether the user can create a poll in this community.
	CanCreatePoll bool `json:"canCreatePoll,omitempty"`

	// CanCreateTopic: Whether the user can create a topic in this
	// community.
	CanCreateTopic bool `json:"canCreateTopic,omitempty"`

	// CanShout: Whether the user can perform a shout operation in this
	// community.
	CanShout bool `json:"canShout,omitempty"`

	// IsCoOwner: Whether the session user is a community co-owner.
	IsCoOwner bool `json:"isCoOwner,omitempty"`

	// IsFollowing: Whether the user is following this community.
	IsFollowing bool `json:"isFollowing,omitempty"`

	// IsModerator: Whether the session user is a community moderator.
	IsModerator bool `json:"isModerator,omitempty"`

	// IsOwner: Whether the session user is the community owner.
	IsOwner bool `json:"isOwner,omitempty"`

	// IsRestoreAvailable: Whether the restore operation is available for
	// the community.
	IsRestoreAvailable bool `json:"isRestoreAvailable,omitempty"`

	// IsTakebackAvailable: Whether the take-back operation is available for
	// the community.
	IsTakebackAvailable bool `json:"isTakebackAvailable,omitempty"`

	// Kind: Kind of this item. Always orkut#communityMembershipStatus.
	Kind string `json:"kind,omitempty"`

	// Status: The status of the current link between the community and the
	// user.
	Status string `json:"status,omitempty"`
}

type CommunityMessage

type CommunityMessage struct {
	// AddedDate: The timestamp of the date when the message was added, in
	// RFC 3339 format.
	AddedDate string `json:"addedDate,omitempty"`

	// Author: The creator of the message. If ommited, the message is
	// annonimous.
	Author *OrkutAuthorResource `json:"author,omitempty"`

	// Body: The body of the message.
	Body string `json:"body,omitempty"`

	// Id: The ID of the message.
	Id int64 `json:"id,omitempty,string"`

	// IsSpam: Whether this post was marked as spam by the viewer, when
	// he/she is not the community owner or one of its moderators.
	IsSpam bool `json:"isSpam,omitempty"`

	// Kind: Identifies this resource as a community message. Value:
	// "orkut#communityMessage"
	Kind string `json:"kind,omitempty"`

	// Links: List of resources for the community message.
	Links []*OrkutLinkResource `json:"links,omitempty"`

	// Subject: The subject of the message.
	Subject string `json:"subject,omitempty"`
}

type CommunityMessageList

type CommunityMessageList struct {
	// FirstPageToken: The value of pageToken query parameter in
	// community_messages.list request to get the first page.
	FirstPageToken string `json:"firstPageToken,omitempty"`

	// Items: List of messages retrieved.
	Items []*CommunityMessage `json:"items,omitempty"`

	// Kind: Identifies this resource as a collection of community messages.
	// Value: "orkut#communityMessageList"
	Kind string `json:"kind,omitempty"`

	// LastPageToken: The value of pageToken query parameter in
	// community_messages.list request to get the last page.
	LastPageToken string `json:"lastPageToken,omitempty"`

	// NextPageToken: The value of pageToken query parameter in
	// community_messages.list request to get the next page, if there are
	// more to retrieve.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// PrevPageToken: The value of pageToken query parameter in
	// community_messages.list request to get the previous page, if there
	// are more to retrieve.
	PrevPageToken string `json:"prevPageToken,omitempty"`
}

type CommunityMessagesDeleteCall

type CommunityMessagesDeleteCall struct {
	// contains filtered or unexported fields
}

func (*CommunityMessagesDeleteCall) Do

type CommunityMessagesInsertCall

type CommunityMessagesInsertCall struct {
	// contains filtered or unexported fields
}

func (*CommunityMessagesInsertCall) Do

type CommunityMessagesListCall

type CommunityMessagesListCall struct {
	// contains filtered or unexported fields
}

func (*CommunityMessagesListCall) Do

func (*CommunityMessagesListCall) Hl

Hl sets the optional parameter "hl": Specifies the interface language (host language) of your user interface.

func (*CommunityMessagesListCall) MaxResults

func (c *CommunityMessagesListCall) MaxResults(maxResults int64) *CommunityMessagesListCall

MaxResults sets the optional parameter "maxResults": The maximum number of messages to include in the response.

func (*CommunityMessagesListCall) PageToken

PageToken sets the optional parameter "pageToken": A continuation token that allows pagination.

type CommunityMessagesService

type CommunityMessagesService struct {
	// contains filtered or unexported fields
}

func NewCommunityMessagesService

func NewCommunityMessagesService(s *Service) *CommunityMessagesService

func (*CommunityMessagesService) Delete

func (r *CommunityMessagesService) Delete(communityId int64, topicId int64, messageId int64) *CommunityMessagesDeleteCall

Delete: Moves a message of the community to the trash folder.

func (*CommunityMessagesService) Insert

func (r *CommunityMessagesService) Insert(communityId int64, topicId int64, communitymessage *CommunityMessage) *CommunityMessagesInsertCall

Insert: Adds a message to a given community topic.

func (*CommunityMessagesService) List

func (r *CommunityMessagesService) List(communityId int64, topicId int64) *CommunityMessagesListCall

List: Retrieves the messages of a topic of a community.

type CommunityPoll

type CommunityPoll struct {
	// Author: The person who created the poll.
	Author *OrkutAuthorResource `json:"author,omitempty"`

	// CommunityId: The ID of the community.
	CommunityId int64 `json:"communityId,omitempty"`

	// CreationTime: The date of creation of this poll
	CreationTime string `json:"creationTime,omitempty"`

	// Description: The poll description.
	Description string `json:"description,omitempty"`

	// EndingTime: The ending date of this poll or empty if the poll doesn't
	// have one.
	EndingTime string `json:"endingTime,omitempty"`

	// HasVoted: Whether the user has voted on this poll.
	HasVoted bool `json:"hasVoted,omitempty"`

	// Id: The poll ID.
	Id string `json:"id,omitempty"`

	// Image: The image representing the poll. Field is omitted if no image
	// exists.
	Image *CommunityPollImage `json:"image,omitempty"`

	// IsClosed: Whether the poll is not expired if there is an expiration
	// date. A poll is open (that is, not closed for voting) if it either is
	// not expired or doesn't have an expiration date at all. Note that just
	// because a poll is open, it doesn't mean that the requester can vote
	// on it.
	IsClosed bool `json:"isClosed,omitempty"`

	// IsMultipleAnswers: Whether this poll allows voting for more than one
	// option.
	IsMultipleAnswers bool `json:"isMultipleAnswers,omitempty"`

	// IsOpenForVoting: Whether this poll is still opened for voting. A poll
	// is open for voting if it is not closed, the user has not yet voted on
	// it and the user has the permission to do so, which happens if he/she
	// is either a community member or the poll is open for everybody.
	IsOpenForVoting bool `json:"isOpenForVoting,omitempty"`

	// IsRestricted: Whether this poll is restricted for members only. If a
	// poll is open but the user can't vote on it, it's been restricted to
	// members only. This information is important to tell this case apart
	// from the one where the user can't vote simply because the poll is
	// already closed.
	IsRestricted bool `json:"isRestricted,omitempty"`

	// IsSpam: Whether the user has marked this poll as spam. This only
	// affects the poll for this user, not globally.
	IsSpam bool `json:"isSpam,omitempty"`

	// IsUsersVotePublic: If user has already voted, whether his vote is
	// publicly visible.
	IsUsersVotePublic bool `json:"isUsersVotePublic,omitempty"`

	// IsVotingAllowedForNonMembers: Whether non-members of the community
	// can vote on the poll.
	IsVotingAllowedForNonMembers bool `json:"isVotingAllowedForNonMembers,omitempty"`

	// Kind: Identifies this resource as a community poll. Value:
	// "orkut#communityPoll"
	Kind string `json:"kind,omitempty"`

	// LastUpdate: The date of the last update of this poll.
	LastUpdate string `json:"lastUpdate,omitempty"`

	// Links: List of resources for the community poll.
	Links []*OrkutLinkResource `json:"links,omitempty"`

	// Options: List of options of this poll.
	Options []*OrkutCommunitypolloptionResource `json:"options,omitempty"`

	// Question: The poll question.
	Question string `json:"question,omitempty"`

	// TotalNumberOfVotes: The total number of votes this poll has received.
	TotalNumberOfVotes int64 `json:"totalNumberOfVotes,omitempty"`

	// VotedOptions: List of options the user has voted on, if there are
	// any.
	VotedOptions []int64 `json:"votedOptions,omitempty"`
}

type CommunityPollComment

type CommunityPollComment struct {
	// AddedDate: The date when the message was added, in RFC 3339 format.
	AddedDate string `json:"addedDate,omitempty"`

	// Author: The creator of the comment.
	Author *OrkutAuthorResource `json:"author,omitempty"`

	// Body: The body of the message.
	Body string `json:"body,omitempty"`

	// Id: The ID of the comment.
	Id int64 `json:"id,omitempty"`

	// Kind: Identifies this resource as a community poll comment. Value:
	// "orkut#communityPollComment"
	Kind string `json:"kind,omitempty"`
}

type CommunityPollCommentList

type CommunityPollCommentList struct {
	// FirstPageToken: The value of pageToken query parameter in
	// community_poll_comments.list request to get the first page.
	FirstPageToken string `json:"firstPageToken,omitempty"`

	// Items: List of community poll comments retrieved.
	Items []*CommunityPollComment `json:"items,omitempty"`

	// Kind: Identifies this resource as a collection of community poll
	// comments. Value: "orkut#CommunityPollCommentList"
	Kind string `json:"kind,omitempty"`

	// LastPageToken: The value of pageToken query parameter in
	// community_poll_comments.list request to get the last page.
	LastPageToken string `json:"lastPageToken,omitempty"`

	// NextPageToken: The value of pageToken query parameter in
	// community_poll_comments.list request to get the next page, if there
	// are more to retrieve.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// PrevPageToken: The value of pageToken query parameter in
	// community_poll_comments.list request to get the previous page, if
	// there are more to retrieve.
	PrevPageToken string `json:"prevPageToken,omitempty"`
}

type CommunityPollCommentsInsertCall

type CommunityPollCommentsInsertCall struct {
	// contains filtered or unexported fields
}

func (*CommunityPollCommentsInsertCall) Do

type CommunityPollCommentsListCall

type CommunityPollCommentsListCall struct {
	// contains filtered or unexported fields
}

func (*CommunityPollCommentsListCall) Do

func (*CommunityPollCommentsListCall) Hl

Hl sets the optional parameter "hl": Specifies the interface language (host language) of your user interface.

func (*CommunityPollCommentsListCall) MaxResults

MaxResults sets the optional parameter "maxResults": The maximum number of comments to include in the response.

func (*CommunityPollCommentsListCall) PageToken

PageToken sets the optional parameter "pageToken": A continuation token that allows pagination.

type CommunityPollCommentsService

type CommunityPollCommentsService struct {
	// contains filtered or unexported fields
}

func NewCommunityPollCommentsService

func NewCommunityPollCommentsService(s *Service) *CommunityPollCommentsService

func (*CommunityPollCommentsService) Insert

func (r *CommunityPollCommentsService) Insert(communityId int64, pollId string, communitypollcomment *CommunityPollComment) *CommunityPollCommentsInsertCall

Insert: Adds a comment on a community poll.

func (*CommunityPollCommentsService) List

List: Retrieves the comments of a community poll.

type CommunityPollImage

type CommunityPollImage struct {
	// Url: A URL that points to an image of the poll.
	Url string `json:"url,omitempty"`
}

type CommunityPollList

type CommunityPollList struct {
	// FirstPageToken: The value of pageToken query parameter in
	// community_polls.list request to get the first page.
	FirstPageToken string `json:"firstPageToken,omitempty"`

	// Items: List of community polls retrieved.
	Items []*CommunityPoll `json:"items,omitempty"`

	// Kind: Identifies this resource as a collection of community polls.
	// Value: "orkut#communityPollList"
	Kind string `json:"kind,omitempty"`

	// LastPageToken: The value of pageToken query parameter in
	// community_polls.list request to get the last page.
	LastPageToken string `json:"lastPageToken,omitempty"`

	// NextPageToken: The value of pageToken query parameter in
	// community_polls.list request to get the next page, if there are more
	// to retrieve.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// PrevPageToken: The value of pageToken query parameter in
	// community_polls.list request to get the previous page, if there are
	// more to retrieve.
	PrevPageToken string `json:"prevPageToken,omitempty"`
}

type CommunityPollVote

type CommunityPollVote struct {
	// IsVotevisible: Whether this vote is visible to other users or not.
	IsVotevisible bool `json:"isVotevisible,omitempty"`

	// Kind: Identifies this resource as a community poll vote. Value:
	// "orkut#communityPollVote"
	Kind string `json:"kind,omitempty"`

	// OptionIds: The ids of the voted options.
	OptionIds []int64 `json:"optionIds,omitempty"`
}

type CommunityPollVotesInsertCall

type CommunityPollVotesInsertCall struct {
	// contains filtered or unexported fields
}

func (*CommunityPollVotesInsertCall) Do

type CommunityPollVotesService

type CommunityPollVotesService struct {
	// contains filtered or unexported fields
}

func NewCommunityPollVotesService

func NewCommunityPollVotesService(s *Service) *CommunityPollVotesService

func (*CommunityPollVotesService) Insert

func (r *CommunityPollVotesService) Insert(communityId int64, pollId string, communitypollvote *CommunityPollVote) *CommunityPollVotesInsertCall

Insert: Votes on a community poll.

type CommunityPollsGetCall

type CommunityPollsGetCall struct {
	// contains filtered or unexported fields
}

func (*CommunityPollsGetCall) Do

func (*CommunityPollsGetCall) Hl

Hl sets the optional parameter "hl": Specifies the interface language (host language) of your user interface.

type CommunityPollsListCall

type CommunityPollsListCall struct {
	// contains filtered or unexported fields
}

func (*CommunityPollsListCall) Do

func (*CommunityPollsListCall) Hl

Hl sets the optional parameter "hl": Specifies the interface language (host language) of your user interface.

func (*CommunityPollsListCall) MaxResults

func (c *CommunityPollsListCall) MaxResults(maxResults int64) *CommunityPollsListCall

MaxResults sets the optional parameter "maxResults": The maximum number of polls to include in the response.

func (*CommunityPollsListCall) PageToken

func (c *CommunityPollsListCall) PageToken(pageToken string) *CommunityPollsListCall

PageToken sets the optional parameter "pageToken": A continuation token that allows pagination.

type CommunityPollsService

type CommunityPollsService struct {
	// contains filtered or unexported fields
}

func NewCommunityPollsService

func NewCommunityPollsService(s *Service) *CommunityPollsService

func (*CommunityPollsService) Get

func (r *CommunityPollsService) Get(communityId int64, pollId string) *CommunityPollsGetCall

Get: Retrieves one specific poll of a community.

func (*CommunityPollsService) List

func (r *CommunityPollsService) List(communityId int64) *CommunityPollsListCall

List: Retrieves the polls of a community.

type CommunityRelatedListCall

type CommunityRelatedListCall struct {
	// contains filtered or unexported fields
}

func (*CommunityRelatedListCall) Do

func (*CommunityRelatedListCall) Hl

Hl sets the optional parameter "hl": Specifies the interface language (host language) of your user interface.

type CommunityRelatedService

type CommunityRelatedService struct {
	// contains filtered or unexported fields
}

func NewCommunityRelatedService

func NewCommunityRelatedService(s *Service) *CommunityRelatedService

func (*CommunityRelatedService) List

List: Retrieves the communities related to another one.

type CommunityTopic

type CommunityTopic struct {
	// Author: The creator of the topic.
	Author *OrkutAuthorResource `json:"author,omitempty"`

	// Body: The body of the topic.
	Body string `json:"body,omitempty"`

	// Id: The ID of the topic.
	Id int64 `json:"id,omitempty,string"`

	// IsClosed: Whether the topic is closed for new messages.
	IsClosed bool `json:"isClosed,omitempty"`

	// Kind: Identifies this resource as a community topic. Value:
	// "orkut#communityTopic"
	Kind string `json:"kind,omitempty"`

	// LastUpdate: The timestamp of the last update, in RFC 3339 format.
	LastUpdate string `json:"lastUpdate,omitempty"`

	// LatestMessageSnippet: Snippet of the last message posted on this
	// topic.
	LatestMessageSnippet string `json:"latestMessageSnippet,omitempty"`

	// Links: List of resources for the community.
	Links []*OrkutLinkResource `json:"links,omitempty"`

	// Messages: Most recent messages.
	Messages []*CommunityMessage `json:"messages,omitempty"`

	// NumberOfReplies: The total number of replies this topic has received.
	NumberOfReplies int64 `json:"numberOfReplies,omitempty"`

	// Title: The title of the topic.
	Title string `json:"title,omitempty"`
}

type CommunityTopicList

type CommunityTopicList struct {
	// FirstPageToken: The value of pageToken query parameter in
	// community_topic.list request to get the first page.
	FirstPageToken string `json:"firstPageToken,omitempty"`

	// Items: List of topics retrieved.
	Items []*CommunityTopic `json:"items,omitempty"`

	// Kind: Identifies this resource as a collection of community topics.
	// Value: "orkut#communityTopicList"
	Kind string `json:"kind,omitempty"`

	// LastPageToken: The value of pageToken query parameter in
	// community_topic.list request to get the last page.
	LastPageToken string `json:"lastPageToken,omitempty"`

	// NextPageToken: The value of pageToken query parameter in
	// community_topic.list request to get the next page, if there are more
	// to retrieve.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// PrevPageToken: The value of pageToken query parameter in
	// community_topic.list request to get the previous page, if there are
	// more to retrieve.
	PrevPageToken string `json:"prevPageToken,omitempty"`
}

type CommunityTopicsDeleteCall

type CommunityTopicsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*CommunityTopicsDeleteCall) Do

type CommunityTopicsGetCall

type CommunityTopicsGetCall struct {
	// contains filtered or unexported fields
}

func (*CommunityTopicsGetCall) Do

func (*CommunityTopicsGetCall) Hl

Hl sets the optional parameter "hl": Specifies the interface language (host language) of your user interface.

type CommunityTopicsInsertCall

type CommunityTopicsInsertCall struct {
	// contains filtered or unexported fields
}

func (*CommunityTopicsInsertCall) Do

func (*CommunityTopicsInsertCall) IsShout

IsShout sets the optional parameter "isShout": Whether this topic is a shout.

type CommunityTopicsListCall

type CommunityTopicsListCall struct {
	// contains filtered or unexported fields
}

func (*CommunityTopicsListCall) Do

func (*CommunityTopicsListCall) Hl

Hl sets the optional parameter "hl": Specifies the interface language (host language) of your user interface.

func (*CommunityTopicsListCall) MaxResults

func (c *CommunityTopicsListCall) MaxResults(maxResults int64) *CommunityTopicsListCall

MaxResults sets the optional parameter "maxResults": The maximum number of topics to include in the response.

func (*CommunityTopicsListCall) PageToken

func (c *CommunityTopicsListCall) PageToken(pageToken string) *CommunityTopicsListCall

PageToken sets the optional parameter "pageToken": A continuation token that allows pagination.

type CommunityTopicsService

type CommunityTopicsService struct {
	// contains filtered or unexported fields
}

func NewCommunityTopicsService

func NewCommunityTopicsService(s *Service) *CommunityTopicsService

func (*CommunityTopicsService) Delete

func (r *CommunityTopicsService) Delete(communityId int64, topicId int64) *CommunityTopicsDeleteCall

Delete: Moves a topic of the community to the trash folder.

func (*CommunityTopicsService) Get

func (r *CommunityTopicsService) Get(communityId int64, topicId int64) *CommunityTopicsGetCall

Get: Retrieves a topic of a community.

func (*CommunityTopicsService) Insert

func (r *CommunityTopicsService) Insert(communityId int64, communitytopic *CommunityTopic) *CommunityTopicsInsertCall

Insert: Adds a topic to a given community.

func (*CommunityTopicsService) List

List: Retrieves the topics of a community.

type Counters

type Counters struct {
	// Items: List of counters retrieved.
	Items []*OrkutCounterResource `json:"items,omitempty"`

	// Kind: Identifies this resource as a collection of counters. Value:
	// "orkut#counters"
	Kind string `json:"kind,omitempty"`
}

type CountersListCall

type CountersListCall struct {
	// contains filtered or unexported fields
}

func (*CountersListCall) Do

func (c *CountersListCall) Do() (*Counters, error)

type CountersService

type CountersService struct {
	// contains filtered or unexported fields
}

func NewCountersService

func NewCountersService(s *Service) *CountersService

func (*CountersService) List

func (r *CountersService) List(userId string) *CountersListCall

List: Retrieves the counters of a user.

type OrkutActivityobjectsResource

type OrkutActivityobjectsResource struct {
	// Community: The community which is related with this activity, e.g. a
	// joined community.
	Community *Community `json:"community,omitempty"`

	// Content: 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.
	Content string `json:"content,omitempty"`

	// DisplayName: The title of the object.
	DisplayName string `json:"displayName,omitempty"`

	// Id: The ID for the object.
	Id string `json:"id,omitempty"`

	// Links: Links to other resources related to this object.
	Links []*OrkutLinkResource `json:"links,omitempty"`

	// ObjectType: The object type.
	ObjectType string `json:"objectType,omitempty"`

	// Person: The person who is related with this activity, e.g. an Added
	// User.
	Person *OrkutActivitypersonResource `json:"person,omitempty"`
}

type OrkutActivitypersonResource

type OrkutActivitypersonResource struct {
	// Birthday: The person's date of birth, represented as YYYY-MM-DD.
	Birthday string `json:"birthday,omitempty"`

	// Gender: The person's gender. Values include "male", "female", and
	// "other".
	Gender string `json:"gender,omitempty"`

	// Id: The person's opensocial ID.
	Id string `json:"id,omitempty"`

	// Image: The person's profile photo. This is adapted from Google+ and
	// was originaly introduced as extra OpenSocial convenience fields.
	Image *OrkutActivitypersonResourceImage `json:"image,omitempty"`

	// Name: An object that encapsulates the individual components of a
	// person's name.
	Name *OrkutActivitypersonResourceName `json:"name,omitempty"`

	// Url: The person's profile url. This is adapted from Google+ and was
	// originaly introduced as extra OpenSocial convenience fields.
	Url string `json:"url,omitempty"`
}

type OrkutActivitypersonResourceImage

type OrkutActivitypersonResourceImage struct {
	// Url: The URL of the person's profile photo.
	Url string `json:"url,omitempty"`
}

type OrkutActivitypersonResourceName

type OrkutActivitypersonResourceName struct {
	// FamilyName: The family name (last name) of this person.
	FamilyName string `json:"familyName,omitempty"`

	// GivenName: The given name (first name) of this person.
	GivenName string `json:"givenName,omitempty"`
}

type OrkutAuthorResource

type OrkutAuthorResource struct {
	// DisplayName: The name of the author, suitable for display.
	DisplayName string `json:"displayName,omitempty"`

	// Id: Unique identifier of the person who posted the comment. This is
	// the person's OpenSocial ID.
	Id string `json:"id,omitempty"`

	// Image: Image data about the author.
	Image *OrkutAuthorResourceImage `json:"image,omitempty"`

	// Url: The URL of the author who posted the comment [not yet
	// implemented]
	Url string `json:"url,omitempty"`
}

type OrkutAuthorResourceImage

type OrkutAuthorResourceImage struct {
	// Url: A URL that points to a thumbnail photo of the author.
	Url string `json:"url,omitempty"`
}

type OrkutCommunitypolloptionResource

type OrkutCommunitypolloptionResource struct {
	// Description: The option description.
	Description string `json:"description,omitempty"`

	// Image: Image data about the poll option. Field is omitted if no image
	// exists.
	Image *OrkutCommunitypolloptionResourceImage `json:"image,omitempty"`

	// NumberOfVotes: The total number of votes that this option received.
	NumberOfVotes int64 `json:"numberOfVotes,omitempty"`

	// OptionId: The poll option ID
	OptionId int64 `json:"optionId,omitempty"`
}

type OrkutCommunitypolloptionResourceImage

type OrkutCommunitypolloptionResourceImage struct {
	// Url: A URL that points to an image of the poll question.
	Url string `json:"url,omitempty"`
}

type OrkutCounterResource

type OrkutCounterResource struct {
	// Link: Link to the collection being counted.
	Link *OrkutLinkResource `json:"link,omitempty"`

	// Name: The name of the counted collection. Currently supported
	// collections are:
	// - scraps - The scraps of the user.
	// - photos - The
	// photos of the user.
	// - videos - The videos of the user.
	// -
	// pendingTestimonials - The pending testimonials of the user.
	Name string `json:"name,omitempty"`

	// Total: The number of resources on the counted collection.
	Total int64 `json:"total,omitempty"`
}

type OrkutLinkResource

type OrkutLinkResource struct {
	// Href: URL of the link.
	Href string `json:"href,omitempty"`

	// Rel: Relation between the resource and the parent object.
	Rel string `json:"rel,omitempty"`

	// Title: Title of the link.
	Title string `json:"title,omitempty"`

	// Type: Media type of the link.
	Type string `json:"type,omitempty"`
}

type ScrapsInsertCall

type ScrapsInsertCall struct {
	// contains filtered or unexported fields
}

func (*ScrapsInsertCall) Do

func (c *ScrapsInsertCall) Do() (*Activity, error)

type ScrapsService

type ScrapsService struct {
	// contains filtered or unexported fields
}

func NewScrapsService

func NewScrapsService(s *Service) *ScrapsService

func (*ScrapsService) Insert

func (r *ScrapsService) Insert(activity *Activity) *ScrapsInsertCall

Insert: Creates a new scrap.

type Service

type Service struct {
	BasePath string // API endpoint base URL

	Acl *AclService

	Activities *ActivitiesService

	ActivityVisibility *ActivityVisibilityService

	Badges *BadgesService

	Comments *CommentsService

	Communities *CommunitiesService

	CommunityFollow *CommunityFollowService

	CommunityMembers *CommunityMembersService

	CommunityMessages *CommunityMessagesService

	CommunityPollComments *CommunityPollCommentsService

	CommunityPollVotes *CommunityPollVotesService

	CommunityPolls *CommunityPollsService

	CommunityRelated *CommunityRelatedService

	CommunityTopics *CommunityTopicsService

	Counters *CountersService

	Scraps *ScrapsService
	// contains filtered or unexported fields
}

func New

func New(client *http.Client) (*Service, error)

type Visibility

type Visibility struct {
	// Kind: Identifies this resource as a visibility item. Value:
	// "orkut#visibility"
	Kind string `json:"kind,omitempty"`

	// Links: List of resources for the visibility item.
	Links []*OrkutLinkResource `json:"links,omitempty"`

	// Visibility: The visibility of the resource. Possible values are:
	// -
	// default: not hidden by the user
	// - hidden: hidden
	Visibility string `json:"visibility,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL