Class UsersResource
The "users" collection of methods.
Inherited Members
Namespace: Google.Apis.Gmail.v1
Assembly: Google.Apis.Gmail.v1.dll
Syntax
public class UsersResource
Constructors
UsersResource(IClientService)
Constructs a new resource.
Declaration
public UsersResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Properties
Drafts
Gets the Drafts resource.
Declaration
public virtual UsersResource.DraftsResource Drafts { get; }
Property Value
Type | Description |
---|---|
UsersResource.DraftsResource |
History
Gets the History resource.
Declaration
public virtual UsersResource.HistoryResource History { get; }
Property Value
Type | Description |
---|---|
UsersResource.HistoryResource |
Labels
Gets the Labels resource.
Declaration
public virtual UsersResource.LabelsResource Labels { get; }
Property Value
Type | Description |
---|---|
UsersResource.LabelsResource |
Messages
Gets the Messages resource.
Declaration
public virtual UsersResource.MessagesResource Messages { get; }
Property Value
Type | Description |
---|---|
UsersResource.MessagesResource |
Settings
Gets the Settings resource.
Declaration
public virtual UsersResource.SettingsResource Settings { get; }
Property Value
Type | Description |
---|---|
UsersResource.SettingsResource |
Threads
Gets the Threads resource.
Declaration
public virtual UsersResource.ThreadsResource Threads { get; }
Property Value
Type | Description |
---|---|
UsersResource.ThreadsResource |
Methods
GetProfile(string)
Gets the current user's Gmail profile.
Declaration
public virtual UsersResource.GetProfileRequest GetProfile(string userId)
Parameters
Type | Name | Description |
---|---|---|
string | userId | The user's email address. The special value |
Returns
Type | Description |
---|---|
UsersResource.GetProfileRequest |
Stop(string)
Stop receiving push notifications for the given user mailbox.
Declaration
public virtual UsersResource.StopRequest Stop(string userId)
Parameters
Type | Name | Description |
---|---|---|
string | userId | The user's email address. The special value |
Returns
Type | Description |
---|---|
UsersResource.StopRequest |
Watch(WatchRequest, string)
Set up or update a push notification watch on the given user mailbox.
Declaration
public virtual UsersResource.WatchRequest Watch(WatchRequest body, string userId)
Parameters
Type | Name | Description |
---|---|---|
WatchRequest | body | The body of the request. |
string | userId | The user's email address. The special value |
Returns
Type | Description |
---|---|
UsersResource.WatchRequest |