"description":"API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"description":"Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
"description":"Returns a list of activities visible to the current logged in user. Visible activities are determined by the visiblity settings of the object that was acted on, e.g. Drive files a user can see. An activity is a record of past events. Multiple events may be merged if they are similar. A request is scoped to activities from a given Google service using the source parameter.",
"httpMethod":"GET",
"id":"appsactivity.activities.list",
"parameters":{
"drive.ancestorId":{
"description":"Identifies the Drive folder containing the items for which to return activities.",
"location":"query",
"type":"string"
},
"drive.fileId":{
"description":"Identifies the Drive item to return activities for.",
"location":"query",
"type":"string"
},
"groupingStrategy":{
"default":"driveUi",
"description":"Indicates the strategy to use when grouping singleEvents items in the associated combinedEvent object.",
"enum":[
"driveUi",
"none"
],
"enumDescriptions":[
"",
""
],
"location":"query",
"type":"string"
},
"pageSize":{
"default":"50",
"description":"The maximum number of events to return on a page. The response includes a continuation token if there are more events.",
"format":"int32",
"location":"query",
"type":"integer"
},
"pageToken":{
"description":"A token to retrieve a specific page of results.",
"location":"query",
"type":"string"
},
"source":{
"description":"The Google service from which to return activities. Possible values of source are: \n- drive.google.com",
"location":"query",
"type":"string"
},
"userId":{
"default":"me",
"description":"Indicates the user to return activity for. Use the special value me to indicate the currently authenticated user.",
"description":"An Activity resource is a combined view of multiple events. An activity has a list of individual events and a combined view of the common fields among all events.",
"id":"Activity",
"properties":{
"combinedEvent":{
"$ref":"Event",
"description":"The fields common to all of the singleEvents that make up the Activity."
},
"singleEvents":{
"description":"A list of all the Events that make up the Activity.",
"description":"Represents the changes associated with an action taken by a user.",
"id":"Event",
"properties":{
"additionalEventTypes":{
"description":"Additional event types. Some events may have multiple types when multiple actions are part of a single event. For example, creating a document, renaming it, and sharing it may be part of a single file-creation event.",
"items":{
"enum":[
"comment",
"create",
"edit",
"emptyTrash",
"move",
"permissionChange",
"rename",
"trash",
"unknown",
"untrash",
"upload"
],
"enumDescriptions":[
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
""
],
"type":"string"
},
"type":"array"
},
"eventTimeMillis":{
"description":"The time at which the event occurred formatted as Unix time in milliseconds.",
"format":"uint64",
"type":"string"
},
"fromUserDeletion":{
"description":"Whether this event is caused by a user being deleted.",
"type":"boolean"
},
"move":{
"$ref":"Move",
"description":"Extra information for move type events, such as changes in an object's parents."
},
"permissionChanges":{
"description":"Extra information for permissionChange type events, such as the user or group the new permission applies to.",
"items":{
"$ref":"PermissionChange"
},
"type":"array"
},
"primaryEventType":{
"description":"The main type of event that occurred.",
"enum":[
"comment",
"create",
"edit",
"emptyTrash",
"move",
"permissionChange",
"rename",
"trash",
"unknown",
"untrash",
"upload"
],
"enumDescriptions":[
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
""
],
"type":"string"
},
"rename":{
"$ref":"Rename",
"description":"Extra information for rename type events, such as the old and new names."
},
"target":{
"$ref":"Target",
"description":"Information specific to the Target object modified by the event."
},
"user":{
"$ref":"User",
"description":"Represents the user responsible for the event."
"description":"Contains information about the permissions and type of access allowed with regards to a Google Drive object. This is a subset of the fields contained in a corresponding Drive Permissions object.",
"id":"Permission",
"properties":{
"name":{
"description":"The name of the user or group the permission applies to.",
"type":"string"
},
"permissionId":{
"description":"The ID for this permission. Corresponds to the Drive API's permission ID returned as part of the Drive Permissions resource.",
"type":"string"
},
"role":{
"description":"Indicates the Google Drive permissions role. The role determines a user's ability to read, write, or comment on the file.",
"enum":[
"commenter",
"owner",
"publishedReader",
"reader",
"writer"
],
"enumDescriptions":[
"",
"",
"",
"",
""
],
"type":"string"
},
"type":{
"description":"Indicates how widely permissions are granted.",
"enum":[
"anyone",
"domain",
"group",
"user"
],
"enumDescriptions":[
"",
"",
"",
""
],
"type":"string"
},
"user":{
"$ref":"User",
"description":"The user's information if the type is USER."
},
"withLink":{
"description":"Whether the permission requires a link to the file.",
"description":"A boolean which indicates whether the specified User was deleted. If true, name, photo and permission_id will be omitted.",
"type":"boolean"
},
"isMe":{
"description":"Whether the user is the authenticated user.",
"type":"boolean"
},
"name":{
"description":"The displayable name of the user.",
"type":"string"
},
"permissionId":{
"description":"The permission ID associated with this user. Equivalent to the Drive API's permission ID for this user, returned as part of the Drive Permissions resource.",
"type":"string"
},
"photo":{
"$ref":"Photo",
"description":"The profile photo of the user. Not present if the user has no profile photo."