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 |
get_process(process_id)
Return the informations for a process
require 'time'
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'
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 "Error when calling ProcessApi->get_process: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_process_with_http_info(process_id)
begin
# Return the informations for a process
data, status_code, headers = api_instance.get_process_with_http_info(process_id)
p status_code # => 2xx
p headers # => { ... }
p data # => <GetProcess>
rescue Brevo::ApiError => e
puts "Error when calling ProcessApi->get_process_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
process_id | Integer | Id of the process |
- Content-Type: Not defined
- Accept: application/json
get_processes(opts)
Return all the processes for your account
require 'time'
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'
end
api_instance = Brevo::ProcessApi.new
opts = {
limit: 789, # Integer | Number limitation for the result returned
offset: 789, # Integer | Beginning point in the list to retrieve from.
sort: 'asc' # 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 "Error when calling ProcessApi->get_processes: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_processes_with_http_info(opts)
begin
# Return all the processes for your account
data, status_code, headers = api_instance.get_processes_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <GetProcesses>
rescue Brevo::ApiError => e
puts "Error when calling ProcessApi->get_processes_with_http_info: #{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: Not defined
- Accept: application/json