QwilAPI - the Ruby gem for the
No descripton provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
This SDK is automatically generated by the Swagger Codegen project:
- API version:
- Package version: 0.1.0
- Build date: 2016-12-22T19:24:41.076-08:00
- Build package: class io.swagger.codegen.languages.RubyClientCodegen
To build the Ruby code into a gem:
gem build qwil_api.gemspec
Then either install the gem locally:
gem install ./qwil_api-0.1.0.gem
(for development, run gem install --dev ./qwil_api-0.1.0.gem
to install the development dependencies)
or publish the gem to a gem hosting service, e.g. RubyGems.
Finally add this to the Gemfile:
gem 'qwil_api', '~> 0.1.0'
If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
gem 'qwil_api', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
Include the Ruby code directly using -I
as follows:
ruby -Ilib script.rb
Please follow the installation procedure and then run the following code:
# Load the gem
require 'qwil_api'
api_instance = QwilAPI::MembershipsApi.new
pk = "pk_example" # String |
begin
#
result = api_instance.membership_retrieve(pk)
p result
rescue QwilAPI::ApiError => e
puts "Exception when calling MembershipsApi->membership_retrieve: #{e}"
end
All URIs are relative to http://localhost:8000/
Class | Method | HTTP request | Description |
---|---|---|---|
QwilAPI::MembershipsApi | membership_retrieve | GET /memberships/{pk}/ |
All endpoints do not require authorization.