All URIs are relative to https://api.evident.io
| Method | HTTP request | Description |
|---|---|---|
| list | GET /api/v2/plans.json_api | Get a list of Plans |
| show | GET /api/v2/plans/{id}.json_api | Show a single Plan |
PaginatedCollection list(opts)
Get a list of Plans
# load the gem
require 'esp_sdk'
api_instance = ESP::PlansApi.new
opts = {
page: "{:number=>1,+:size=>20}" # String | Page Number and Page Size. Number is the page number of the collection to return, size is the number of items to return per page.
}
begin
#Get a list of Plans
result = api_instance.list(opts)
p result
rescue ESP::ApiError => e
puts "Exception when calling PlansApi->list: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| page | String | Page Number and Page Size. Number is the page number of the collection to return, size is the number of items to return per page. | [optional] [default to {:number=>1,+:size=>20}] |
See https://github.com/EvidentSecurity/esp-sdk-ruby#set-your-hmac-security-keys
- Content-Type: application/vnd.api+json
- Accept: application/vnd.api+json
Plan show(id)
Show a single Plan
# load the gem
require 'esp_sdk'
api_instance = ESP::PlansApi.new
id = 56 # Integer | Plan ID
begin
#Show a single Plan
result = api_instance.show(id)
p result
rescue ESP::ApiError => e
puts "Exception when calling PlansApi->show: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | Integer | Plan ID |
See https://github.com/EvidentSecurity/esp-sdk-ruby#set-your-hmac-security-keys
- Content-Type: application/vnd.api+json
- Accept: application/vnd.api+json