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

BmltClient

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

BmltClient

  • 1.0.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

BmltClient

BmltClient - the Ruby gem for the BMLT

BMLT Admin API Documentation

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 BmltClient.gemspec

Then either install the gem locally:

gem install ./BmltClient-1.0.0.gem

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

Install from Git

If the Ruby gem is hosted at a git repository: https://github.com/bmlt-enabled/bmlt-root-server-ruby-client, then add the following in the Gemfile:

gem 'BmltClient', :git => 'https://github.com/bmlt-enabled/bmlt-root-server-ruby-client.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 'BmltClient'

# Setup authorization
BmltClient.configure do |config|
  # Configure OAuth2 access token for authorization: bmltToken
  config.access_token = 'YOUR ACCESS TOKEN'
end

api_instance = BmltClient::RootServerApi.new

begin
  #Revokes a token
  api_instance.auth_logout
rescue BmltClient::ApiError => e
  puts "Exception when calling RootServerApi->auth_logout: #{e}"
end

Documentation for API Endpoints

All URIs are relative to http://localhost:8000/main_server

ClassMethodHTTP requestDescription
BmltClient::RootServerApiauth_logoutPOST /api/v1/auth/logoutRevokes a token
BmltClient::RootServerApiauth_refreshPOST /api/v1/auth/refreshRevokes and issues a new token
BmltClient::RootServerApiauth_tokenPOST /api/v1/auth/tokenCreates a token
BmltClient::RootServerApicreate_error_testPOST /api/v1/errortestTests some errors
BmltClient::RootServerApicreate_formatPOST /api/v1/formatsCreates a format
BmltClient::RootServerApicreate_meetingPOST /api/v1/meetingsCreates a meeting
BmltClient::RootServerApicreate_service_bodyPOST /api/v1/servicebodiesCreates a service body
BmltClient::RootServerApicreate_userPOST /api/v1/usersCreates a user
BmltClient::RootServerApidelete_formatDELETE /api/v1/formats/{formatId}Deletes a format
BmltClient::RootServerApidelete_meetingDELETE /api/v1/meetings/{meetingId}Deletes a meeting
BmltClient::RootServerApidelete_service_bodyDELETE /api/v1/servicebodies/{serviceBodyId}Deletes a service body
BmltClient::RootServerApidelete_userDELETE /api/v1/users/{userId}Deletes a user
BmltClient::RootServerApiget_formatGET /api/v1/formats/{formatId}Retrieves a format
BmltClient::RootServerApiget_formatsGET /api/v1/formatsRetrieves formats
BmltClient::RootServerApiget_meetingGET /api/v1/meetings/{meetingId}Retrieves a meeting
BmltClient::RootServerApiget_meetingsGET /api/v1/meetingsRetrieves meetings
BmltClient::RootServerApiget_service_bodiesGET /api/v1/servicebodiesRetrieves service bodies
BmltClient::RootServerApiget_service_bodyGET /api/v1/servicebodies/{serviceBodyId}Retrieves a service body
BmltClient::RootServerApiget_userGET /api/v1/users/{userId}Retrieves a single user
BmltClient::RootServerApiget_usersGET /api/v1/usersRetrieves users
BmltClient::RootServerApipartial_update_userPATCH /api/v1/users/{userId}Patches a user
BmltClient::RootServerApipatch_formatPATCH /api/v1/formats/{formatId}Patches a format
BmltClient::RootServerApipatch_meetingPATCH /api/v1/meetings/{meetingId}Patches a meeting
BmltClient::RootServerApipatch_service_bodyPATCH /api/v1/servicebodies/{serviceBodyId}Patches a service body
BmltClient::RootServerApiupdate_formatPUT /api/v1/formats/{formatId}Updates a format
BmltClient::RootServerApiupdate_meetingPUT /api/v1/meetings/{meetingId}Updates a meeting
BmltClient::RootServerApiupdate_service_bodyPUT /api/v1/servicebodies/{serviceBodyId}Updates a Service Body
BmltClient::RootServerApiupdate_userPUT /api/v1/users/{userId}Update single user

Documentation for Models

Documentation for Authorization

bmltToken

  • Type: OAuth
  • Flow: password
  • Authorization URL:
  • Scopes: N/A

FAQs

Package last updated on 24 Oct 2022

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