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

    Interface AccountRequestBuilder

    Builds and executes requests for operations under /v2/account

    interface AccountRequestBuilder {
        get keys(): KeysRequestBuilder;
        get(
            requestConfiguration?: RequestConfiguration<object>,
        ): Promise<undefined | AccountGetResponse>;
        toGetRequestInformation(
            requestConfiguration?: RequestConfiguration<object>,
        ): RequestInformation;
        withUrl(rawUrl: string): AccountRequestBuilder;
    }

    Hierarchy

    Index

    Accessors

    Methods

    • To show information about the current user account, send a GET request to /v2/account.

      Parameters

      • OptionalrequestConfiguration: RequestConfiguration<object>

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

      Returns Promise<undefined | AccountGetResponse>

      error when the service returns a 401 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 show information about the current user account, send a GET request to /v2/account.

      Parameters

      • OptionalrequestConfiguration: RequestConfiguration<object>

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

      Returns RequestInformation

    • Parameters

      • rawUrl: string

      Returns AccountRequestBuilder