All URIs are relative to https://api-sandbox.synctera.com/v0
Method | HTTP request | Description |
---|---|---|
create_edd | POST /edd | Create a EDD |
delete_edd | DELETE /edd/{edd_id} | Delete a EDD |
get_edd | GET /edd/{edd_id} | Get a EDD |
list_edd | GET /edd | List EDD |
create_edd(create_edd_request)
Create a EDD
Create a EDD
require 'time'
require 'synctera'
# setup authorization
Synctera.configure do |config|
# Configure Bearer authorization (api_key): bearerAuth
config.access_token = 'YOUR_BEARER_TOKEN'
end
api_instance = Synctera::EDDApi.new
create_edd_request = Synctera::EddAccount.new({reason: 'CASE_REQUEST', related_resource_id: 'related_resource_id_example', related_resource_type: Synctera::RelatedResourceType1::ACCOUNT}) # CreateEddRequest | EDD to create
begin
# Create a EDD
result = api_instance.create_edd(create_edd_request)
p result
rescue Synctera::ApiError => e
puts "Error when calling EDDApi->create_edd: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> create_edd_with_http_info(create_edd_request)
begin
# Create a EDD
data, status_code, headers = api_instance.create_edd_with_http_info(create_edd_request)
p status_code # => 2xx
p headers # => { ... }
p data # => <CreateEddResponse>
rescue Synctera::ApiError => e
puts "Error when calling EDDApi->create_edd_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
create_edd_request | CreateEddRequest | EDD to create |
- Content-Type: application/json
- Accept: application/json, application/problem+json
delete_edd(edd_id)
Delete a EDD
Delete a EDD
require 'time'
require 'synctera'
# setup authorization
Synctera.configure do |config|
# Configure Bearer authorization (api_key): bearerAuth
config.access_token = 'YOUR_BEARER_TOKEN'
end
api_instance = Synctera::EDDApi.new
edd_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The unique identifier of a edd
begin
# Delete a EDD
result = api_instance.delete_edd(edd_id)
p result
rescue Synctera::ApiError => e
puts "Error when calling EDDApi->delete_edd: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> delete_edd_with_http_info(edd_id)
begin
# Delete a EDD
data, status_code, headers = api_instance.delete_edd_with_http_info(edd_id)
p status_code # => 2xx
p headers # => { ... }
p data # => <DeleteResponse>
rescue Synctera::ApiError => e
puts "Error when calling EDDApi->delete_edd_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
edd_id | String | The unique identifier of a edd |
- Content-Type: Not defined
- Accept: application/json, application/problem+json
get_edd(edd_id)
Get a EDD
Get a EDD
require 'time'
require 'synctera'
# setup authorization
Synctera.configure do |config|
# Configure Bearer authorization (api_key): bearerAuth
config.access_token = 'YOUR_BEARER_TOKEN'
end
api_instance = Synctera::EDDApi.new
edd_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The unique identifier of a edd
begin
# Get a EDD
result = api_instance.get_edd(edd_id)
p result
rescue Synctera::ApiError => e
puts "Error when calling EDDApi->get_edd: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_edd_with_http_info(edd_id)
begin
# Get a EDD
data, status_code, headers = api_instance.get_edd_with_http_info(edd_id)
p status_code # => 2xx
p headers # => { ... }
p data # => <CreateEddResponse>
rescue Synctera::ApiError => e
puts "Error when calling EDDApi->get_edd_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
edd_id | String | The unique identifier of a edd |
- Content-Type: Not defined
- Accept: application/json, application/problem+json
list_edd(related_resource_type, opts)
List EDD
Get paginated list of EDD
require 'time'
require 'synctera'
# setup authorization
Synctera.configure do |config|
# Configure Bearer authorization (api_key): bearerAuth
config.access_token = 'YOUR_BEARER_TOKEN'
end
api_instance = Synctera::EDDApi.new
related_resource_type = [Synctera::RelatedResourceType1::ACCOUNT] # Array<RelatedResourceType1> | Type of related resource. Multiple values can be provided as a comma-separated list.
opts = {
related_resource_id: ['inner_example'], # Array<String> | Unique identifier for the related resource. Multiple IDs can be provided as a comma-separated list.
page_token: 'a8937a0d', # String |
limit: 100 # Integer |
}
begin
# List EDD
result = api_instance.list_edd(related_resource_type, opts)
p result
rescue Synctera::ApiError => e
puts "Error when calling EDDApi->list_edd: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> list_edd_with_http_info(related_resource_type, opts)
begin
# List EDD
data, status_code, headers = api_instance.list_edd_with_http_info(related_resource_type, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <EddList>
rescue Synctera::ApiError => e
puts "Error when calling EDDApi->list_edd_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
related_resource_type | Array<RelatedResourceType1> | Type of related resource. Multiple values can be provided as a comma-separated list. | |
related_resource_id | Array<String> | Unique identifier for the related resource. Multiple IDs can be provided as a comma-separated list. | [optional] |
page_token | String | [optional] | |
limit | Integer | [optional][default to 100] |
- Content-Type: Not defined
- Accept: application/json, application/problem+json