Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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.
See: Drive Activity API Reference for appsactivity.activities.list
.
Synopsis
- type ActivitiesListResource = "appsactivity" :> ("v1" :> ("activities" :> (QueryParam "drive.fileId" Text :> (QueryParam "drive.ancestorId" Text :> (QueryParam "groupingStrategy" ActivitiesListGroupingStrategy :> (QueryParam "userId" Text :> (QueryParam "source" Text :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "alt" AltJSON :> Get '[JSON] ListActivitiesResponse))))))))))
- activitiesList :: ActivitiesList
- data ActivitiesList
- alDriveFileId :: Lens' ActivitiesList (Maybe Text)
- alDriveAncestorId :: Lens' ActivitiesList (Maybe Text)
- alGroupingStrategy :: Lens' ActivitiesList ActivitiesListGroupingStrategy
- alUserId :: Lens' ActivitiesList Text
- alSource :: Lens' ActivitiesList (Maybe Text)
- alPageToken :: Lens' ActivitiesList (Maybe Text)
- alPageSize :: Lens' ActivitiesList Int32
REST Resource
type ActivitiesListResource = "appsactivity" :> ("v1" :> ("activities" :> (QueryParam "drive.fileId" Text :> (QueryParam "drive.ancestorId" Text :> (QueryParam "groupingStrategy" ActivitiesListGroupingStrategy :> (QueryParam "userId" Text :> (QueryParam "source" Text :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "alt" AltJSON :> Get '[JSON] ListActivitiesResponse)))))))))) Source #
A resource alias for appsactivity.activities.list
method which the
ActivitiesList
request conforms to.
Creating a Request
activitiesList :: ActivitiesList Source #
Creates a value of ActivitiesList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ActivitiesList Source #
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.
See: activitiesList
smart constructor.
Instances
Request Lenses
alDriveFileId :: Lens' ActivitiesList (Maybe Text) Source #
Identifies the Drive item to return activities for.
alDriveAncestorId :: Lens' ActivitiesList (Maybe Text) Source #
Identifies the Drive folder containing the items for which to return activities.
alGroupingStrategy :: Lens' ActivitiesList ActivitiesListGroupingStrategy Source #
Indicates the strategy to use when grouping singleEvents items in the associated combinedEvent object.
alUserId :: Lens' ActivitiesList Text Source #
Indicates the user to return activity for. Use the special value me to indicate the currently authenticated user.
alSource :: Lens' ActivitiesList (Maybe Text) Source #
The Google service from which to return activities. Possible values of source are: - drive.google.com
alPageToken :: Lens' ActivitiesList (Maybe Text) Source #
A token to retrieve a specific page of results.
alPageSize :: Lens' ActivitiesList Int32 Source #
The maximum number of events to return on a page. The response includes a continuation token if there are more events.