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

outline_vpn_api

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

outline_vpn_api

  • 0.2.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

outline_vpn_api

Ruby API wrapper for Outline VPN Server https://getoutline.org/ It provides a simple interface to manage and retrieve information about VPN keys, metrics, and other related functionalities.

Installation

Ensure you have the required gems installed:

gem install outline_vpn_api

Usage

Initialization

To start using the client, initialize it with the API URL:

client = OutlineVpnApi.new('YOUR_API_URL')

Methods

keys_list

Fetches a list of all keys:

keys = client.keys_list
transferred_data_by_id

Fetches the transferred data metrics:

data = client.transferred_data_by_id
create_key

Creates a new key:

new_key = client.create_key
set_limit(key_id, limit)

Sets a data limit for a specific key:

client.set_limit('KEY_ID', LIMIT_IN_BYTES)
rename_key(key_id, name)

Renames a specific key:

client.rename_key('KEY_ID', 'NEW_NAME')
delete_key(key_id)

Deletes a specific key:

client.delete_key('KEY_ID')

Dependencies

  • httparty: Used for making HTTP requests.
  • json: Used for parsing JSON responses.

Contributing

If you'd like to contribute to this project, please submit a pull request with your changes.

License

This project is licensed under the MIT License. See the LICENSE file for details.

FAQs

Package last updated on 27 Oct 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