| Method | HTTP request | Description |
|---|---|---|
| cancel_booking | POST /deliveries/{id}/cancel | |
| deliveries_get_quote | POST /deliveries/get_quote | |
| deliveries_post | POST /deliveries |
cancel_booking(id, opts)
# load the gem
require 'deliveree_sdk'
# setup authorization
Deliveree.configure do |config|
# Configure API key authorization: ApiKeyAuth
config.api_key['Authorization'] = 'YOUR API KEY'
end
api_instance = Deliveree::DelivereeApi.new
id = 56 # Integer | ID of delivery
opts = {
accept_language: 'en' # String |
}
begin
api_instance.cancel_booking(id, opts)
rescue Deliveree::ApiError => e
puts "Exception when calling DelivereeApi->cancel_booking: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | Integer | ID of delivery | |
| accept_language | String | [optional] [default to en] |
nil (empty response body)
- Content-Type: application/json
- Accept: application/json
ResponseWithData deliveries_get_quote(body, opts)
# load the gem
require 'deliveree_sdk'
# setup authorization
Deliveree.configure do |config|
# Configure API key authorization: ApiKeyAuth
config.api_key['Authorization'] = 'YOUR API KEY'
end
api_instance = Deliveree::DelivereeApi.new
body = Deliveree::Quote.new # Quote |
opts = {
accept_language: 'en' # String |
}
begin
result = api_instance.deliveries_get_quote(body, opts)
p result
rescue Deliveree::ApiError => e
puts "Exception when calling DelivereeApi->deliveries_get_quote: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| body | Quote | ||
| accept_language | String | [optional] [default to en] |
- Content-Type: application/json
- Accept: application/json
ResponseDefault deliveries_post(body, opts)
# load the gem
require 'deliveree_sdk'
# setup authorization
Deliveree.configure do |config|
# Configure API key authorization: ApiKeyAuth
config.api_key['Authorization'] = 'YOUR API KEY'
end
api_instance = Deliveree::DelivereeApi.new
body = Deliveree::Delivery.new # Delivery |
opts = {
accept_language: 'en' # String |
}
begin
result = api_instance.deliveries_post(body, opts)
p result
rescue Deliveree::ApiError => e
puts "Exception when calling DelivereeApi->deliveries_post: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| body | Delivery | ||
| accept_language | String | [optional] [default to en] |
- Content-Type: application/json
- Accept: application/json