All URIs are relative to https://api.brevo.com/v3
Method | HTTP request | Description |
---|---|---|
get_process | GET /processes/{processId} | Return the informations for a process |
get_processes | GET /processes | Return all the processes for your account |
GetProcess get_process(process_id)
Return the informations for a process
# load the gem
require 'brevo'
# setup authorization
Brevo.configure do |config|
# Configure API key authorization: api-key
config.api_key['api-key'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: partner-key
config.api_key['partner-key'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['partner-key'] = 'Bearer'
end
api_instance = Brevo::ProcessApi.new
process_id = 789 # Integer | Id of the process
begin
#Return the informations for a process
result = api_instance.get_process(process_id)
p result
rescue Brevo::ApiError => e
puts "Exception when calling ProcessApi->get_process: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
process_id | Integer | Id of the process |
- Content-Type: application/json
- Accept: application/json
GetProcesses get_processes(opts)
Return all the processes for your account
# load the gem
require 'brevo'
# setup authorization
Brevo.configure do |config|
# Configure API key authorization: api-key
config.api_key['api-key'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: partner-key
config.api_key['partner-key'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['partner-key'] = 'Bearer'
end
api_instance = Brevo::ProcessApi.new
opts = {
limit: 10, # Integer | Number limitation for the result returned
offset: 0, # Integer | Beginning point in the list to retrieve from.
sort: 'desc' # String | Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed
}
begin
#Return all the processes for your account
result = api_instance.get_processes(opts)
p result
rescue Brevo::ApiError => e
puts "Exception when calling ProcessApi->get_processes: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
limit | Integer | Number limitation for the result returned | [optional] [default to 10] |
offset | Integer | Beginning point in the list to retrieve from. | [optional] [default to 0] |
sort | String | Sort the results in the ascending/descending order of record creation. Default order is descending if `sort` is not passed | [optional] [default to desc] |
- Content-Type: application/json
- Accept: application/json