Class UsersResource
The "users" collection of methods.
public class UsersResource
- Inheritance
-
UsersResource
- Inherited Members
Constructors
UsersResource(IClientService)
Constructs a new resource.
public UsersResource(IClientService service)
Parameters
service
IClientService
Properties
Drafts
Gets the Drafts resource.
public virtual UsersResource.DraftsResource Drafts { get; }
Property Value
History
Gets the History resource.
public virtual UsersResource.HistoryResource History { get; }
Property Value
Labels
Gets the Labels resource.
public virtual UsersResource.LabelsResource Labels { get; }
Property Value
Messages
Gets the Messages resource.
public virtual UsersResource.MessagesResource Messages { get; }
Property Value
Settings
Gets the Settings resource.
public virtual UsersResource.SettingsResource Settings { get; }
Property Value
Threads
Gets the Threads resource.
public virtual UsersResource.ThreadsResource Threads { get; }
Property Value
Methods
GetProfile(string)
Gets the current user's Gmail profile.
public virtual UsersResource.GetProfileRequest GetProfile(string userId)
Parameters
userId
stringThe user's email address. The special value
me
can be used to indicate the authenticated user.
Returns
Stop(string)
Stop receiving push notifications for the given user mailbox.
public virtual UsersResource.StopRequest Stop(string userId)
Parameters
userId
stringThe user's email address. The special value
me
can be used to indicate the authenticated user.
Returns
Watch(WatchRequest, string)
Set up or update a push notification watch on the given user mailbox.
public virtual UsersResource.WatchRequest Watch(WatchRequest body, string userId)
Parameters
body
WatchRequestThe body of the request.
userId
stringThe user's email address. The special value
me
can be used to indicate the authenticated user.