Class DropboxTeamClient
The client which contains endpoints which perform team-level actions.
Implements
Inherited Members
Namespace: Dropbox.Api
Assembly: Dropbox.Api.dll
Syntax
public sealed class DropboxTeamClient : DropboxClientBase, IDisposable
Constructors
| Improve this Doc View SourceDropboxTeamClient(String)
Initializes a new instance of the DropboxTeamClient class.
Declaration
public DropboxTeamClient(string oauth2Token)
Parameters
Type | Name | Description |
---|---|---|
System.String | oauth2Token | The oauth2 access token for making client requests. |
DropboxTeamClient(String, DropboxClientConfig)
Initializes a new instance of the DropboxTeamClient class.
Declaration
public DropboxTeamClient(string oauth2AccessToken, DropboxClientConfig config)
Parameters
Type | Name | Description |
---|---|---|
System.String | oauth2AccessToken | The oauth2 access token for making client requests. |
DropboxClientConfig | config | The DropboxClientConfig. |
DropboxTeamClient(String, DateTime)
Initializes a new instance of the DropboxTeamClient class.
Declaration
public DropboxTeamClient(string oauth2AccessToken, DateTime oauth2AccessTokenExpiresAt)
Parameters
Type | Name | Description |
---|---|---|
System.String | oauth2AccessToken | The oauth2 access token for making client requests. |
System.DateTime | oauth2AccessTokenExpiresAt | The time when the current access token expires, can be null if using long-lived tokens. |
DropboxTeamClient(String, DateTime, DropboxClientConfig)
Initializes a new instance of the DropboxTeamClient class.
Declaration
public DropboxTeamClient(string oauth2AccessToken, DateTime oauth2AccessTokenExpiresAt, DropboxClientConfig config)
Parameters
Type | Name | Description |
---|---|---|
System.String | oauth2AccessToken | The oauth2 access token for making client requests. |
System.DateTime | oauth2AccessTokenExpiresAt | The time when the current access token expires, can be null if using long-lived tokens. |
DropboxClientConfig | config | The DropboxClientConfig. |
DropboxTeamClient(String, String)
Initializes a new instance of the DropboxTeamClient class.
Declaration
public DropboxTeamClient(string oauth2RefreshToken, string appKey)
Parameters
Type | Name | Description |
---|---|---|
System.String | oauth2RefreshToken | The oauth2 access token for making client requests. |
System.String | appKey | The app key to be used for refreshing tokens. |
DropboxTeamClient(String, String, DropboxClientConfig)
Initializes a new instance of the DropboxTeamClient class.
Declaration
public DropboxTeamClient(string oauth2RefreshToken, string appKey, DropboxClientConfig config)
Parameters
Type | Name | Description |
---|---|---|
System.String | oauth2RefreshToken | The oauth2 access token for making client requests. |
System.String | appKey | The app key to be used for refreshing tokens. |
DropboxClientConfig | config | The DropboxClientConfig. |
DropboxTeamClient(String, String, DateTime, String)
Initializes a new instance of the DropboxTeamClient class.
Declaration
public DropboxTeamClient(string oauth2AccessToken, string oauth2RefreshToken, DateTime oauth2AccessTokenExpiresAt, string appKey)
Parameters
Type | Name | Description |
---|---|---|
System.String | oauth2AccessToken | The oauth2 access token for making client requests. |
System.String | oauth2RefreshToken | The oauth2 refresh token for refreshing access tokens. |
System.DateTime | oauth2AccessTokenExpiresAt | The time when the current access token expires, can be null if using long-lived tokens. |
System.String | appKey | The app key to be used for refreshing tokens. |
DropboxTeamClient(String, String, DateTime, String, DropboxClientConfig)
Initializes a new instance of the DropboxTeamClient class.
Declaration
public DropboxTeamClient(string oauth2AccessToken, string oauth2RefreshToken, DateTime oauth2AccessTokenExpiresAt, string appKey, DropboxClientConfig config)
Parameters
Type | Name | Description |
---|---|---|
System.String | oauth2AccessToken | The oauth2 access token for making client requests. |
System.String | oauth2RefreshToken | The oauth2 refresh token for refreshing access tokens. |
System.DateTime | oauth2AccessTokenExpiresAt | The time when the current access token expires, can be null if using long-lived tokens. |
System.String | appKey | The app key to be used for refreshing tokens. |
DropboxClientConfig | config | The DropboxClientConfig. |
DropboxTeamClient(String, String, DateTime, String, String)
Initializes a new instance of the DropboxTeamClient class.
Declaration
public DropboxTeamClient(string oauth2AccessToken, string oauth2RefreshToken, DateTime oauth2AccessTokenExpiresAt, string appKey, string appSecret)
Parameters
Type | Name | Description |
---|---|---|
System.String | oauth2AccessToken | The oauth2 access token for making client requests. |
System.String | oauth2RefreshToken | The oauth2 refresh token for refreshing access tokens. |
System.DateTime | oauth2AccessTokenExpiresAt | The time when the current access token expires, can be null if using long-lived tokens. |
System.String | appKey | The app key to be used for refreshing tokens. |
System.String | appSecret | The app secret to be used for refreshing tokens. |
DropboxTeamClient(String, String, DateTime, String, String, DropboxClientConfig)
Initializes a new instance of the DropboxTeamClient class.
Declaration
public DropboxTeamClient(string oauth2AccessToken, string oauth2RefreshToken, DateTime oauth2AccessTokenExpiresAt, string appKey, string appSecret, DropboxClientConfig config)
Parameters
Type | Name | Description |
---|---|---|
System.String | oauth2AccessToken | The oauth2 access token for making client requests. |
System.String | oauth2RefreshToken | The oauth2 refresh token for refreshing access tokens. |
System.DateTime | oauth2AccessTokenExpiresAt | The time when the current access token expires, can be null if using long-lived tokens. |
System.String | appKey | The app key to be used for refreshing tokens. |
System.String | appSecret | The app secret to be used for refreshing tokens. |
DropboxClientConfig | config | The DropboxClientConfig. |
DropboxTeamClient(String, String, String)
Initializes a new instance of the DropboxTeamClient class.
Declaration
public DropboxTeamClient(string oauth2RefreshToken, string appKey, string appSecret)
Parameters
Type | Name | Description |
---|---|---|
System.String | oauth2RefreshToken | The oauth2 refresh token for refreshing access tokens. |
System.String | appKey | The app key to be used for refreshing tokens. |
System.String | appSecret | The app secret to be used for refreshing tokens. |
DropboxTeamClient(String, String, String, DropboxClientConfig)
Initializes a new instance of the DropboxTeamClient class.
Declaration
public DropboxTeamClient(string oauth2RefreshToken, string appKey, string appSecret, DropboxClientConfig config)
Parameters
Type | Name | Description |
---|---|---|
System.String | oauth2RefreshToken | The oauth2 refresh token for refreshing access tokens. |
System.String | appKey | The app key to be used for refreshing tokens. |
System.String | appSecret | The app secret to be used for refreshing tokens. |
DropboxClientConfig | config | The DropboxClientConfig. |
DropboxTeamClient(String, String, String, String, DropboxClientConfig)
Initializes a new instance of the DropboxTeamClient class.
Declaration
public DropboxTeamClient(string oauth2AccessToken, string oauth2RefreshToken, string appKey, string appSecret, DropboxClientConfig config)
Parameters
Type | Name | Description |
---|---|---|
System.String | oauth2AccessToken | The oauth2 access token for making client requests. |
System.String | oauth2RefreshToken | The oauth2 refresh token for refreshing access tokens. |
System.String | appKey | The app key to be used for refreshing tokens. |
System.String | appSecret | The app secret to be used for refreshing tokens. |
DropboxClientConfig | config | The DropboxClientConfig. |
Properties
| Improve this Doc View SourceFileProperties
Gets the FileProperties routes.
Declaration
public FilePropertiesTeamRoutes FileProperties { get; }
Property Value
Type | Description |
---|---|
FilePropertiesTeamRoutes |
Team
Gets the Team routes.
Declaration
public TeamTeamRoutes Team { get; }
Property Value
Type | Description |
---|---|
TeamTeamRoutes |
TeamLog
Gets the TeamLog routes.
Declaration
public TeamLogTeamRoutes TeamLog { get; }
Property Value
Type | Description |
---|---|
TeamLogTeamRoutes |
Methods
| Improve this Doc View SourceAsAdmin(String)
Convert the team client to a user client which can perform action on team owned contents. See documentation for Dropbox-API-Select-Admin for detail.
Declaration
public DropboxClient AsAdmin(string adminId)
Parameters
Type | Name | Description |
---|---|---|
System.String | adminId | The member id of a team admin. |
Returns
Type | Description |
---|---|
DropboxClient | The DropboxClient. |
AsMember(String)
Convert the team client to a user client which can perform action on the given team member's Dropbox.
Declaration
public DropboxClient AsMember(string memberId)
Parameters
Type | Name | Description |
---|---|---|
System.String | memberId | The member id of a user who is in the team. |
Returns
Type | Description |
---|---|
DropboxClient | The DropboxClient. |
RefreshAccessToken(String[])
Refreshes access token regardless of if existing token is expired.
Declaration
public Task<bool> RefreshAccessToken(string[] scopeList)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | scopeList | subset of scopes to refresh token with, or null to refresh with all scopes. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Boolean> | true if token is successfully refreshed, false otherwise. |