All URIs are relative to https://api.clerk.com/v1
Method | HTTP request | Description |
---|---|---|
create_testing_token | POST /testing_tokens | Retrieve a new testing token |
create_testing_token
Retrieve a new testing token
Retrieve a new testing token. Only available for development instances.
require 'time'
require 'clerk-http-client'
# setup authorization
ClerkHttpClient.configure do |config|
# Configure Bearer authorization (sk_<environment>_<secret value>): bearerAuth
config.access_token = 'YOUR_BEARER_TOKEN'
end
api_instance = ClerkHttpClient::TestingTokensApi.new
begin
# Retrieve a new testing token
result = api_instance.create_testing_token
p result
rescue ClerkHttpClient::ApiError => e
puts "Error when calling TestingTokensApi->create_testing_token: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> create_testing_token_with_http_info
begin
# Retrieve a new testing token
data, status_code, headers = api_instance.create_testing_token_with_http_info
p status_code # => 2xx
p headers # => { ... }
p data # => <TestingToken>
rescue ClerkHttpClient::ApiError => e
puts "Error when calling TestingTokensApi->create_testing_token_with_http_info: #{e}"
end
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json