
Security News
Oxlint Introduces Type-Aware Linting Preview
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
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/
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'
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 using -I
as follows:
ruby -Ilib script.rb
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
All URIs are relative to https://api.forestvpn.com/cloud/v1
Class | Method | HTTP request | Description |
---|---|---|---|
ForestVPNCloudAPI::GeoApi | list_locations | GET /locations/ | Location list |
ForestVPNCloudAPI::LimitsApi | create_data_usage_limit | ** | |
POST** /limits/data-usage/ | Create data usage limit | ||
ForestVPNCloudAPI::LimitsApi | delete_data_usage_limit | ** | |
DELETE** /limits/data-usage/{limitId}/ | Delete data usage limit | ||
ForestVPNCloudAPI::LimitsApi | get_data_usage_limit | ** | |
GET** /limits/data-usage/{limitId}/ | Data usage limit details | ||
ForestVPNCloudAPI::LimitsApi | lis_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::LimitsApi | update_data_usage_limit | ** | |
PUT** /limits/data-usage/{limitId}/ | Update data usage limit | ||
ForestVPNCloudAPI::ProfilesApi | create_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::ProfilesApi | delete_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::ProfilesApi | get_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::ProfilesApi | list_profile_stats | ** | |
GET** /profiles/{profileId}/stats/ | Profile stats list | ||
ForestVPNCloudAPI::ProfilesApi | list_profiles | ** | |
GET** /profiles/ | Profile list | ||
ForestVPNCloudAPI::ProfilesApi | partial_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::ProfilesApi | update_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 |
FAQs
Unknown package
We found that forestvpn_cloud_api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.