Coder Social home page Coder Social logo

ElasticWeb ruby client library

Client library for talking to Elasticweb API. Supports all endpoints.

Installation

Add this line to your application's Gemfile:

gem 'elasticweb'

And then execute:

$ bundle

Or install it yourself as:

$ gem install elasticweb

Usage

Initialize client:

client = ElasticWeb::Client.new('API_KEY')

And then talk to API:

client.me

List of all methods

Client methods just map 1 to 1 to API, see all of them beyond. Check API docs for list of available options.

User

me

Account

accounts
create_account(options)
update_account(id, options)
delete_account(id)

Account cron

update_cron(id, options)

Server

servers

Alias

aliases(account_id)
create_alias(account_id, options)
update_alias(alias_name, options)
delete_alias(alias_name)

Domain

domains(account_id)
create_domain(account_id, options)
update_domain(domain_name, options)
delete_domain(domain_name)

DNS

domain_dns(domain_name)
dns(id)
create_dns(domain_name, options)
delete_dns(id)

Database

databases(account_id)
create_database(account_id, options)
delete_database(account_id, db_name)

Database user

databases_users(account_id)
database_user_info(account_id, db_user_name)
create_database_user(account_id, options)
update_database_user(account_id, db_user_name, options)
delete_database_user(account_id, db_user_name)

Billing

operation_types
operations(type_name)

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/dev1vitaly/elasticweb.

License

The gem is available as open source under the terms of the MIT License.

elasticweb - хостинг's Projects

elasticweb - хостинг doesn’t have any public repositories yet.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.