ApifyClient.API.ActorOauthAccounts (apify_client v1.0.0)

Copy Markdown View Source

Provides API endpoint related to api/actor oauth accounts

Summary

Functions

Get Actor OAuth account

Functions

get(account_id, opts \\ [])

@spec get(account_id :: String.t(), opts :: keyword()) ::
  {:ok, ApifyClient.Schemas.ActorOAuthAccount.t()}
  | {:error, ApifyClient.Error.t()}

Get Actor OAuth account

Gets an account connected through an Actor OAuth connection, including its OAuth tokens.

This endpoint only accepts the API token of an Actor run (the APIFY_TOKEN environment variable of the run). The run must belong to the Actor that the account's OAuth connection is configured on, and the account must belong to the user the run's token acts for. Any other token gets a 403 error.