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 Dropbox
Declaration
public DropboxTeamClient(string oauth2Token)
Parameters
Type | Name | Description |
---|---|---|
System. |
oauth2Token | The oauth2 access token for making client requests. |
DropboxTeamClient(String, DropboxClientConfig)
Initializes a new instance of the Dropbox
Declaration
public DropboxTeamClient(string oauth2AccessToken, DropboxClientConfig config)
Parameters
Type | Name | Description |
---|---|---|
System. |
oauth2AccessToken | The oauth2 access token for making client requests. |
Dropbox |
config | The Dropbox |
DropboxTeamClient(String, DateTime)
Initializes a new instance of the Dropbox
Declaration
public DropboxTeamClient(string oauth2AccessToken, DateTime oauth2AccessTokenExpiresAt)
Parameters
Type | Name | Description |
---|---|---|
System. |
oauth2AccessToken | The oauth2 access token for making client requests. |
System. |
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 Dropbox
Declaration
public DropboxTeamClient(string oauth2AccessToken, DateTime oauth2AccessTokenExpiresAt, DropboxClientConfig config)
Parameters
Type | Name | Description |
---|---|---|
System. |
oauth2AccessToken | The oauth2 access token for making client requests. |
System. |
oauth2AccessTokenExpiresAt | The time when the current access token expires, can be null if using long-lived tokens. |
Dropbox |
config | The Dropbox |
DropboxTeamClient(String, String)
Initializes a new instance of the Dropbox
Declaration
public DropboxTeamClient(string oauth2RefreshToken, string appKey)
Parameters
Type | Name | Description |
---|---|---|
System. |
oauth2RefreshToken | The oauth2 access token for making client requests. |
System. |
appKey | The app key to be used for refreshing tokens. |
DropboxTeamClient(String, String, DropboxClientConfig)
Initializes a new instance of the Dropbox
Declaration
public DropboxTeamClient(string oauth2RefreshToken, string appKey, DropboxClientConfig config)
Parameters
Type | Name | Description |
---|---|---|
System. |
oauth2RefreshToken | The oauth2 access token for making client requests. |
System. |
appKey | The app key to be used for refreshing tokens. |
Dropbox |
config | The Dropbox |
DropboxTeamClient(String, String, DateTime, String)
Initializes a new instance of the Dropbox
Declaration
public DropboxTeamClient(string oauth2AccessToken, string oauth2RefreshToken, DateTime oauth2AccessTokenExpiresAt, string appKey)
Parameters
Type | Name | Description |
---|---|---|
System. |
oauth2AccessToken | The oauth2 access token for making client requests. |
System. |
oauth2RefreshToken | The oauth2 refresh token for refreshing access tokens. |
System. |
oauth2AccessTokenExpiresAt | The time when the current access token expires, can be null if using long-lived tokens. |
System. |
appKey | The app key to be used for refreshing tokens. |
DropboxTeamClient(String, String, DateTime, String, DropboxClientConfig)
Initializes a new instance of the Dropbox
Declaration
public DropboxTeamClient(string oauth2AccessToken, string oauth2RefreshToken, DateTime oauth2AccessTokenExpiresAt, string appKey, DropboxClientConfig config)
Parameters
Type | Name | Description |
---|---|---|
System. |
oauth2AccessToken | The oauth2 access token for making client requests. |
System. |
oauth2RefreshToken | The oauth2 refresh token for refreshing access tokens. |
System. |
oauth2AccessTokenExpiresAt | The time when the current access token expires, can be null if using long-lived tokens. |
System. |
appKey | The app key to be used for refreshing tokens. |
Dropbox |
config | The Dropbox |
DropboxTeamClient(String, String, DateTime, String, String)
Initializes a new instance of the Dropbox
Declaration
public DropboxTeamClient(string oauth2AccessToken, string oauth2RefreshToken, DateTime oauth2AccessTokenExpiresAt, string appKey, string appSecret)
Parameters
Type | Name | Description |
---|---|---|
System. |
oauth2AccessToken | The oauth2 access token for making client requests. |
System. |
oauth2RefreshToken | The oauth2 refresh token for refreshing access tokens. |
System. |
oauth2AccessTokenExpiresAt | The time when the current access token expires, can be null if using long-lived tokens. |
System. |
appKey | The app key to be used for refreshing tokens. |
System. |
appSecret | The app secret to be used for refreshing tokens. |
DropboxTeamClient(String, String, DateTime, String, String, DropboxClientConfig)
Initializes a new instance of the Dropbox
Declaration
public DropboxTeamClient(string oauth2AccessToken, string oauth2RefreshToken, DateTime oauth2AccessTokenExpiresAt, string appKey, string appSecret, DropboxClientConfig config)
Parameters
Type | Name | Description |
---|---|---|
System. |
oauth2AccessToken | The oauth2 access token for making client requests. |
System. |
oauth2RefreshToken | The oauth2 refresh token for refreshing access tokens. |
System. |
oauth2AccessTokenExpiresAt | The time when the current access token expires, can be null if using long-lived tokens. |
System. |
appKey | The app key to be used for refreshing tokens. |
System. |
appSecret | The app secret to be used for refreshing tokens. |
Dropbox |
config | The Dropbox |
DropboxTeamClient(String, String, String)
Initializes a new instance of the Dropbox
Declaration
public DropboxTeamClient(string oauth2RefreshToken, string appKey, string appSecret)
Parameters
Type | Name | Description |
---|---|---|
System. |
oauth2RefreshToken | The oauth2 refresh token for refreshing access tokens. |
System. |
appKey | The app key to be used for refreshing tokens. |
System. |
appSecret | The app secret to be used for refreshing tokens. |
DropboxTeamClient(String, String, String, DropboxClientConfig)
Initializes a new instance of the Dropbox
Declaration
public DropboxTeamClient(string oauth2RefreshToken, string appKey, string appSecret, DropboxClientConfig config)
Parameters
Type | Name | Description |
---|---|---|
System. |
oauth2RefreshToken | The oauth2 refresh token for refreshing access tokens. |
System. |
appKey | The app key to be used for refreshing tokens. |
System. |
appSecret | The app secret to be used for refreshing tokens. |
Dropbox |
config | The Dropbox |
DropboxTeamClient(String, String, String, String, DropboxClientConfig)
Initializes a new instance of the Dropbox
Declaration
public DropboxTeamClient(string oauth2AccessToken, string oauth2RefreshToken, string appKey, string appSecret, DropboxClientConfig config)
Parameters
Type | Name | Description |
---|---|---|
System. |
oauth2AccessToken | The oauth2 access token for making client requests. |
System. |
oauth2RefreshToken | The oauth2 refresh token for refreshing access tokens. |
System. |
appKey | The app key to be used for refreshing tokens. |
System. |
appSecret | The app secret to be used for refreshing tokens. |
Dropbox |
config | The Dropbox |
Properties
| Improve this Doc View SourceFileProperties
Gets the FileProperties routes.
Declaration
public FilePropertiesTeamRoutes FileProperties { get; }
Property Value
Type | Description |
---|---|
File |
Team
Gets the Team routes.
Declaration
public TeamTeamRoutes Team { get; }
Property Value
Type | Description |
---|---|
Team |
TeamLog
Gets the TeamLog routes.
Declaration
public TeamLogTeamRoutes TeamLog { get; }
Property Value
Type | Description |
---|---|
Team |
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. |
adminId | The member id of a team admin. |
Returns
Type | Description |
---|---|
Dropbox |
The Dropbox |
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. |
memberId | The member id of a user who is in the team. |
Returns
Type | Description |
---|---|
Dropbox |
The Dropbox |
RefreshAccessToken(String[])
Refreshes access token regardless of if existing token is expired.
Declaration
public Task<bool> RefreshAccessToken(string[] scopeList)
Parameters
Type | Name | Description |
---|---|---|
System. |
scopeList | subset of scopes to refresh token with, or null to refresh with all scopes. |
Returns
Type | Description |
---|---|
System. |
true if token is successfully refreshed, false otherwise. |