Skip to content
This repository was archived by the owner on Jan 12, 2021. It is now read-only.

Latest commit

 

History

History
60 lines (37 loc) · 1.38 KB

File metadata and controls

60 lines (37 loc) · 1.38 KB

ESP::SubscriptionsApi

All URIs are relative to https://api.evident.io

Method HTTP request Description
show GET /api/v2/subscriptions/{id}.json_api Show a single Subscription

show

Subscription show(id, opts)

Show a single Subscription

Example

# load the gem
require 'esp_sdk'

api_instance = ESP::SubscriptionsApi.new

id = 56 # Integer | Subscription ID

opts = { 
  include: "include_example" # String | Related objects that can be included in the response:  organization, plan See Including Objects for more information.
}

begin
  #Show a single Subscription
  result = api_instance.show(id, opts)
  p result
rescue ESP::ApiError => e
  puts "Exception when calling SubscriptionsApi->show: #{e}"
end

Parameters

Name Type Description Notes
id Integer Subscription ID
include String Related objects that can be included in the response: organization, plan See Including Objects for more information. [optional]

Return type

Subscription

Authorization

See https://github.com/EvidentSecurity/esp-sdk-ruby#set-your-hmac-security-keys

HTTP request headers

  • Content-Type: application/vnd.api+json
  • Accept: application/vnd.api+json