Show / Hide Table of Contents

Class DropboxTeamClient

The client which contains endpoints which perform team-level actions.

Inheritance
System.Object
DropboxClientBase
DropboxTeamClient
Implements
System.IDisposable
Inherited Members
DropboxClientBase.Dispose()
DropboxClientBase.Dispose(Boolean)
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: Dropbox.Api
Assembly: Dropbox.Api.dll
Syntax
public sealed class DropboxTeamClient : DropboxClientBase, IDisposable

Constructors

| Improve this Doc View Source

DropboxTeamClient(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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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 Source

FileProperties

Gets the FileProperties routes.

Declaration
public FilePropertiesTeamRoutes FileProperties { get; }
Property Value
Type Description
FilePropertiesTeamRoutes
| Improve this Doc View Source

Team

Gets the Team routes.

Declaration
public TeamTeamRoutes Team { get; }
Property Value
Type Description
TeamTeamRoutes
| Improve this Doc View Source

TeamLog

Gets the TeamLog routes.

Declaration
public TeamLogTeamRoutes TeamLog { get; }
Property Value
Type Description
TeamLogTeamRoutes

Methods

| Improve this Doc View Source

AsAdmin(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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

Implements

System.IDisposable
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • DropboxTeamClient(String)
    • DropboxTeamClient(String, DropboxClientConfig)
    • DropboxTeamClient(String, DateTime)
    • DropboxTeamClient(String, DateTime, DropboxClientConfig)
    • DropboxTeamClient(String, String)
    • DropboxTeamClient(String, String, DropboxClientConfig)
    • DropboxTeamClient(String, String, DateTime, String)
    • DropboxTeamClient(String, String, DateTime, String, DropboxClientConfig)
    • DropboxTeamClient(String, String, DateTime, String, String)
    • DropboxTeamClient(String, String, DateTime, String, String, DropboxClientConfig)
    • DropboxTeamClient(String, String, String)
    • DropboxTeamClient(String, String, String, DropboxClientConfig)
    • DropboxTeamClient(String, String, String, String, DropboxClientConfig)
  • Properties
    • FileProperties
    • Team
    • TeamLog
  • Methods
    • AsAdmin(String)
    • AsMember(String)
    • RefreshAccessToken(String[])
  • Implements
Back to top Generated by DocFX