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

forestvpn_cloud_api

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

forestvpn_cloud_api

  • 1.0.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

forestvpn_cloud_api

ForestVPNCloudAPI - the Ruby gem for the ForestVPN Cloud API

ForestVPN Cloud - it's a Google Cloud but for VPN apps. Ready to use VPN Cloud Platform minimizes efforts to build fast, secure, and modern VPN apps.

For more information, please visit https://forestvpn.com/

Installation

Build a gem

To build the Ruby code into a gem:

gem build forestvpn_cloud_api.gemspec

Then either install the gem locally:

gem install ./forestvpn_cloud_api-ERSION.gem

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

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 'forestvpn_cloud_api', :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 'forestvpn_cloud_api'

# Setup authorization
ForestVPNCloudAPI.configure do |config|
  # Configure API key authorization: ApiTokenAuth
  config.api_key['ApiTokenAuth'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  # config.api_key_prefix['ApiTokenAuth'] = 'Bearer'

  # Configure Bearer authorization (JWT): BearerTokenAuth
  config.access_token = 'YOUR_BEARER_TOKEN'
end

api_instance = ForestVPNCloudAPI::GeoApi.new

begin
  #Location list
  result = api_instance.list_locations
  p result
rescue ForestVPNCloudAPI::ApiError => e
  puts "Exception when calling GeoApi->list_locations: #{e}"
end

Documentation for API Endpoints

All URIs are relative to https://api.forestvpn.com/cloud/v1

ClassMethodHTTP requestDescription
ForestVPNCloudAPI::GeoApilist_locationsGET /locations/Location list
ForestVPNCloudAPI::LimitsApicreate_data_usage_limit**
POST** /limits/data-usage/Create data usage limit
ForestVPNCloudAPI::LimitsApidelete_data_usage_limit**
DELETE** /limits/data-usage/{limitId}/Delete data usage limit
ForestVPNCloudAPI::LimitsApiget_data_usage_limit**
GET** /limits/data-usage/{limitId}/Data usage limit details
ForestVPNCloudAPI::LimitsApilis_data_usage_limits**
GET** /limits/data-usage/Data usage limit list
ForestVPNCloudAPI::LimitsApi[**
partial_update_data_usage_limit**](docs/LimitsApi.md#partial_update_data_usage_limit)**
PATCH** /limits/data-usage/{limitId}/Partial update profile details
ForestVPNCloudAPI::LimitsApiupdate_data_usage_limit**
PUT** /limits/data-usage/{limitId}/Update data usage limit
ForestVPNCloudAPI::ProfilesApicreate_profile**
POST** /profiles/Create profile
ForestVPNCloudAPI::ProfilesApi[**
create_profile_data_usage_limit**](docs/ProfilesApi.md#create_profile_data_usage_limit)**
POST** /profiles/{profileId}/limits/data-usages/Create profile data usage limit
ForestVPNCloudAPI::ProfilesApidelete_profile**
DELETE** /profiles/{profileId}/Delete profile
ForestVPNCloudAPI::ProfilesApi[**
delete_profile_data_usage_limit**](docs/ProfilesApi.md#delete_profile_data_usage_limit)**
DELETE** /profiles/{profileId}/limits/data-usages/{limitId}/Delete profile data usage limit
ForestVPNCloudAPI::ProfilesApiget_profile**
GET** /profiles/{profileId}/Profile details
ForestVPNCloudAPI::ProfilesApi[**
get_profile_data_usage_limit**](docs/ProfilesApi.md#get_profile_data_usage_limit)**
GET** /profiles/{profileId}/limits/data-usages/{limitId}/Profile data usage limit details
ForestVPNCloudAPI::ProfilesApi[**
list_profile_data_usage_limits**](docs/ProfilesApi.md#list_profile_data_usage_limits)**
GET** /profiles/{profileId}/limits/data-usages/Profile data usage limits list
ForestVPNCloudAPI::ProfilesApilist_profile_stats**
GET** /profiles/{profileId}/stats/Profile stats list
ForestVPNCloudAPI::ProfilesApilist_profiles**
GET** /profiles/Profile list
ForestVPNCloudAPI::ProfilesApipartial_update_profile**
PATCH** /profiles/{profileId}/Partial update profile details
ForestVPNCloudAPI::ProfilesApi[**
partial_update_profile_data_usage_limit**](docs/ProfilesApi.md#partial_update_profile_data_usage_limit)**
PATCH** /profiles/{profileId}/limits/data-usages/{limitId}/Partial update profile data usage limit
ForestVPNCloudAPI::ProfilesApiupdate_profile**
PUT** /profiles/{profileId}/Update profile details
ForestVPNCloudAPI::ProfilesApi[**
update_profile_data_usage_limit**](docs/ProfilesApi.md#update_profile_data_usage_limit)**
PUT** /profiles/{profileId}/limits/data-usages/{limitId}/Update profile data usage limit

Documentation for Models

Documentation for Authorization

ApiTokenAuth

  • Type: API key
  • API key parameter name: X-API-TOKEN
  • Location: HTTP header

BearerTokenAuth

  • Type: Bearer authentication (JWT)

FAQs

Package last updated on 20 Jun 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