https://github.com/agnel/webceo
Client Library for Webceo API
https://github.com/agnel/webceo
api-client api-wrapper ruby ruby-gem webceo webceo-api
Last synced: about 2 months ago
JSON representation
Client Library for Webceo API
- Host: GitHub
- URL: https://github.com/agnel/webceo
- Owner: agnel
- License: mit
- Created: 2018-03-30T07:51:25.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-14T09:20:22.000Z (about 8 years ago)
- Last Synced: 2025-10-10T01:06:41.447Z (9 months ago)
- Topics: api-client, api-wrapper, ruby, ruby-gem, webceo, webceo-api
- Language: Ruby
- Size: 38.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Webceo
[][gem_version]
[][gem_downloads]

[][liberapay_donate_link]
[gem_version]: https://badge.fury.io/rb/webceo
[gem_downloads]: https://rubygems.org/gems/webceo
[liberapay_donate_link]: https://liberapay.com/agnelwaghela/donate
Integrate your ruby application with this `webceo` gem to perform the api action using your webceo account. Take a look at the [Webceo API Reference](https://www.webceo.com/api-documentation.htm).
## Getting Started
Add this line to your application's Gemfile:
```ruby
gem 'webceo'
```
And then execute:
$ bundle
Or install it yourself as:
$ gem install webceo
and run the following generator to install the initializer
$ rails generate webceo:install
## Usage
```ruby
# Configure the gem
Webceo.configure do |config|
# set the api_key option as per your convenience, for example using environment variables
config.api_key = ENV['WEBCEO_API_KEY']
end
# initialize an instance of the Client
client = Webceo::Api::Client.new
# get the list of all methods
client.list_methods # => ['get_projects', 'get_project', ...]
# get list of all the projects, see api reference
client.get_projects({ :id => 'my_request_id' })
# => [{:id=>'my_request_id', :data=>[{:project=>"8ady5y7e36", :domain=>"example.com", :user=>["user1@yoursite.com", "user2@yoursite.com", ... ]}, {:project=>"asg4563wef", :domain=>"example.com", :user=>["user3@yoursite.com", "user4@yoursite.com", ... ]}], :method=>"get_projects"}]
# get a single project
client.get_project({ :project => '8ady5y7e36' })
# => [{:id=>nil, :data=>{:project=>"8ady5y7e36", :domain=>"example.com", :user=>["user1@yoursite.com", "user2@yoursite.com", ... ]}, :method=>"get_projects"}]
```
## Contributing
[][open_source_helpers]

[open_source_helpers]: https://www.codetriage.com/agnel/webceo
Bug reports and pull requests are welcome on GitHub at https://github.com/agnel/webceo. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
Check out the [Webceo Ruby Gem Google Group](https://groups.google.com/forum/#!forum/webceo-api-client/)
## License
[][mit_license]
[mit_license]: http://opensource.org/licenses/MIT
Webceo is released under the [MIT License](http://opensource.org/licenses/MIT).
## Todo
- [x] Configuration Support [#1]
- [x] Generator for initializer with configuration boilerplate [#2]
- [ ] Batch Operations Support
- [ ] Specs
[#1]: https://github.com/agnel/webceo/pull/1
[#2]: https://github.com/agnel/webceo/pull/2