Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

reed_sdk

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reed_sdk

  • 1.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

reed_sdk

ReedSdk - the Ruby gem for the The One Api Client

This is a sample client for the the-one-api service. This client implements endpoints related to movie and quotes.

This SDK is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.RubyClientCodegen

Installation

Build a gem

To build the Ruby code into a gem:

gem build reed_sdk.gemspec

Then either install the gem locally:

gem install ./reed_sdk-1.0.0.gem

(for development, run gem install --dev ./reed_sdk-1.0.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 'reed_sdk', '~> 1.0.0'

Install from Git

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 'reed_sdk', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'

Include the Ruby code directly

Include the Ruby code directly using -I as follows:

ruby -Ilib script.rb

Getting Started

Please follow the installation procedure and then run the following code:

# Load the gem
require 'reed_sdk'

# Setup authorization
ReedSdk.configure do |config|
  # Configure Bearer authorization: bearerAuth
  config.access_token = 'YOUR_BEARER_TOKEN'
  # Configure a proc to get access tokens in lieu of the static access_token configuration
  config.access_token_getter = -> { 'YOUR TOKEN GETTER PROC' } 
end

api_instance = ReedSdk::TheOneApiApi.new
id = 'id_example' # String | Movie ID

begin
  #Retrieve a movie by a specific ID
  result = api_instance.retrieve_movie(id)
  p result
rescue ReedSdk::ApiError => e
  puts "Exception when calling TheOneApiApi->retrieve_movie: #{e}"
end

Documentation for API Endpoints

All URIs are relative to https://the-one-api.dev/v2

ClassMethodHTTP requestDescription
ReedSdk::TheOneApiApiretrieve_movieGET /movie/{id}Retrieve a movie by a specific ID
ReedSdk::TheOneApiApiretrieve_movie_quotesGET /movie/{id}/quoteRetrieve a specific movies quotes.
ReedSdk::TheOneApiApiretrieve_moviesGET /movieRetrieve all movies
ReedSdk::TheOneApiApiretrieve_quoteGET /quote/{id}Retrieve a specific movie quote
ReedSdk::TheOneApiApiretrieve_quotesGET /quoteRetrieve all movie quotes

Documentation for Models

Documentation for Authorization

Authentication schemes defined for the API:

bearerAuth

  • Type: Bearer authentication

FAQs

Package last updated on 17 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc