Polar::Api::Oauth2::Clients
API client for clients operations in oauth2 context
Constants
Log = ::Log.for(self)
Constructors
new(client : Client)
Creates a new Clients instance
@param client [Client] The Polar API client instance
Instance methods
create_client(body : Polar::Models::OAuth2ClientConfiguration)
Create Client
Create an OAuth2 client.
Endpoint: POST /v1/oauth2/register
Parameters:
body(required): Request body as Polar::Models::OAuth2ClientConfiguration
Returns: JSON response string
Raises:
ResourceNotFoundErroron 404NotPermittedErroron 403HTTPValidationErroron 422PolarErroron other errors
delete_client(client_id : String)
Delete Client
Delete an OAuth2 client.
Endpoint: DELETE /v1/oauth2/register/{client_id}
Parameters:
client_id(required): Path parameter
Returns: JSON response string
Raises:
ResourceNotFoundErroron 404NotPermittedErroron 403HTTPValidationErroron 422PolarErroron other errors
get_client(client_id : String)
Get Client
Get an OAuth2 client by Client ID.
Endpoint: GET /v1/oauth2/register/{client_id}
Parameters:
client_id(required): Path parameter
Returns: JSON response string
Raises:
ResourceNotFoundErroron 404NotPermittedErroron 403HTTPValidationErroron 422PolarErroron other errors
Update Client
Update an OAuth2 client.
Endpoint: PUT /v1/oauth2/register/{client_id}
Parameters:
client_id(required): Path parameterbody(required): Request body as Polar::Models::OAuth2ClientConfigurationUpdate
Returns: JSON response string
Raises:
ResourceNotFoundErroron 404NotPermittedErroron 403HTTPValidationErroron 422PolarErroron other errors