@digitalocean/dots - v1.0.1
    Preparing search index...

    Builds and executes requests for operations under /v2/gen-ai/oauth2/dropbox/tokens

    interface TokensRequestBuilder {
        post(
            body: ApiDropboxOauth2GetTokensInput,
            requestConfiguration?: RequestConfiguration<object>,
        ): Promise<undefined | ApiDropboxOauth2GetTokensOutput>;
        toPostRequestInformation(
            body: ApiDropboxOauth2GetTokensInput,
            requestConfiguration?: RequestConfiguration<object>,
        ): RequestInformation;
        withUrl(rawUrl: string): TokensRequestBuilder;
    }

    Hierarchy

    Index

    Methods

    post

    • post(
          body: ApiDropboxOauth2GetTokensInput,
          requestConfiguration?: RequestConfiguration<object>,
      ): Promise<undefined | ApiDropboxOauth2GetTokensOutput>

      To obtain the refresh token, needed for creation of data sources, send a GET request to /v2/gen-ai/oauth2/dropbox/tokens. Pass the code you obtrained from the oauth flow in the field 'code'

      Parameters

      • body: ApiDropboxOauth2GetTokensInput

        The oauth2 code from google

      • OptionalrequestConfiguration: RequestConfiguration<object>

        Configuration for the request such as headers, query parameters, and middleware options.

      Returns Promise<undefined | ApiDropboxOauth2GetTokensOutput>

      error when the service returns a 401 status code

      error when the service returns a 404 status code

      error when the service returns a 429 status code

      error when the service returns a 500 status code

      error when the service returns a 4XX or 5XX status code

    • To obtain the refresh token, needed for creation of data sources, send a GET request to /v2/gen-ai/oauth2/dropbox/tokens. Pass the code you obtrained from the oauth flow in the field 'code'

      Parameters

      • body: ApiDropboxOauth2GetTokensInput

        The oauth2 code from google

      • OptionalrequestConfiguration: RequestConfiguration<object>

        Configuration for the request such as headers, query parameters, and middleware options.

      Returns RequestInformation

    • Parameters

      • rawUrl: string

      Returns TokensRequestBuilder