Class UsersResource
The "users" collection of methods.
Inheritance
System.Object
UsersResource
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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 |
|---|---|---|
| Google.Apis.Services.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 |
|---|---|---|
| System.String | userId | The user's email address. The special value me can be used to indicate the authenticated user. |
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 |
|---|---|---|
| System.String | userId | The user's email address. The special value me can be used to indicate the authenticated user. |
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. |
| System.String | userId | The user's email address. The special value me can be used to indicate the authenticated user. |
Returns
| Type | Description |
|---|---|
| UsersResource.WatchRequest |