All URIs are relative to https://api.bombbomb.com/v2
| Method | HTTP request | Description |
|---|---|---|
| create_o_auth_client | POST /oauthclient | Create an OAuth Client |
| delete_o_auth_client | DELETE /oauthclient/{id} | Delete an OAuth Client |
| get_o_auth_clients | GET /oauthclient | Lists OAuth Clients |
| get_spec | GET /spec | Describes this api |
OAuthClient create_o_auth_client(name, redirect_uri)
Create an OAuth Client
Creates an OAuth Client managed by the user
# load the gem
require 'bombbomb'
# setup authorization
BombBomb.configure do |config|
# Configure OAuth2 access token for authorization: BBOAuth2
config.access_token = 'YOUR ACCESS TOKEN'
end
api_instance = BombBomb::UtilitiesApi.new
name = "name_example" # String | The name of the OAuth client. e.g. MyCrm DEV, or MyCrm PROD
redirect_uri = "redirect_uri_example" # String | The URI to direct the client to after logging in.
begin
#Create an OAuth Client
result = api_instance.create_o_auth_client(name, redirect_uri)
p result
rescue BombBomb::ApiError => e
puts "Exception when calling UtilitiesApi->create_o_auth_client: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| name | String | The name of the OAuth client. e.g. MyCrm DEV, or MyCrm PROD | |
| redirect_uri | String | The URI to direct the client to after logging in. |
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
delete_o_auth_client(id)
Delete an OAuth Client
Deletes an OAuth Client managed by the user
# load the gem
require 'bombbomb'
# setup authorization
BombBomb.configure do |config|
# Configure OAuth2 access token for authorization: BBOAuth2
config.access_token = 'YOUR ACCESS TOKEN'
end
api_instance = BombBomb::UtilitiesApi.new
id = "id_example" # String | The id of the OAuth Client
begin
#Delete an OAuth Client
api_instance.delete_o_auth_client(id)
rescue BombBomb::ApiError => e
puts "Exception when calling UtilitiesApi->delete_o_auth_client: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The id of the OAuth Client |
nil (empty response body)
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
Array<OAuthClient> get_o_auth_clients
Lists OAuth Clients
Enumerates OAuth Clients managed by the user
# load the gem
require 'bombbomb'
# setup authorization
BombBomb.configure do |config|
# Configure OAuth2 access token for authorization: BBOAuth2
config.access_token = 'YOUR ACCESS TOKEN'
end
api_instance = BombBomb::UtilitiesApi.new
begin
#Lists OAuth Clients
result = api_instance.get_o_auth_clients
p result
rescue BombBomb::ApiError => e
puts "Exception when calling UtilitiesApi->get_o_auth_clients: #{e}"
endThis endpoint does not need any parameter.
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
get_spec
Describes this api
Describes methods available through the API.
# load the gem
require 'bombbomb'
api_instance = BombBomb::UtilitiesApi.new
begin
#Describes this api
api_instance.get_spec
rescue BombBomb::ApiError => e
puts "Exception when calling UtilitiesApi->get_spec: #{e}"
endThis endpoint does not need any parameter.
nil (empty response body)
No authorization required
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json