Socket
Book a DemoInstallSign in
Socket

togai_client

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

togai_client

1.0.2
bundlerRubygems
Version published
Maintainers
1
Created
Source

togai_client

TogaiClient - the Ruby gem for the Togai Apis

Togai is an end to end pricing infrastructure that enable you with metering, aggregating, pricing and billing for your application.

This is an official Ruby client library for using Togai APIs.

  • API version: 1.0
  • Package version: 1.0.2

Installation

Add this line to your application's Gemfile:

gem 'togai_client'

And then execute:

$ bundle

Or install it yourself as:

$ gem install togai_client

Getting Started

To get started with the library, you need to create a api token from your Togai Account Please follow the installation procedure and then run the following code:

# Load the gem
require 'togai_client'

# Setup authorization
TogaiClient.configure do |config|
  # Configure Bearer authorization (Bearer <credential>): bearerAuth
  config.access_token = 'YOUR_BEARER_TOKEN'
end

api_instance = TogaiClient::AccountsApi.new
account_id = 'ACC00001' # String | account_id corresponding to an account
add_account_aliases_request = TogaiClient::AddAccountAliasesRequest.new # AddAccountAliasesRequest | Payload to add aliases to account

begin
  #Add Aliases to account
  result = api_instance.add_aliases(account_id, add_account_aliases_request)
  p result
rescue TogaiClient::ApiError => e
  puts "Exception when calling AccountsApi->add_aliases: #{e}"
end

FAQs

Package last updated on 19 Dec 2024

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.