Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/madwork/yoolinkpro-ruby-sdk
YoolinkPro API Ruby SDK
https://github.com/madwork/yoolinkpro-ruby-sdk
Last synced: 20 days ago
JSON representation
YoolinkPro API Ruby SDK
- Host: GitHub
- URL: https://github.com/madwork/yoolinkpro-ruby-sdk
- Owner: madwork
- License: mit
- Created: 2013-01-22T14:14:58.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-04-10T09:16:16.000Z (almost 12 years ago)
- Last Synced: 2024-12-18T15:48:37.398Z (25 days ago)
- Language: Ruby
- Homepage: https://api.yoolinkpro.com
- Size: 158 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Yoolinkpro Ruby SDK
Ruby Gem for [YoolinkPro API](https://api.yoolinkpro.com) - [YoolinkPro](https://www.yoolinkpro.com)
Manage your feed, users, groups, teams... was never so easy!
## Installation
Add this line to your application's Gemfile:
gem 'yoolinkpro-ruby-sdk'
And then execute:
$ bundle
Or install it yourself as:
$ gem install yoolinkpro-ruby-sdk
## Usage
* Instantiate a happy client
client = Yoolinkpro::Client.new 'public_key', 'private_key', 'admin_key'
* Retrieve user, team, group by id...
client.find :user, 1
client.find :group, 1* Search user by email
client.search :user, email: "[email protected]"
* Retrieve users, teams, groups...
client.find_all :users
client.find_all :groups* Create a shiny new user, team, group
client.create :user, { lastname: "Durand", firstname: "Vincent", email: "[email protected]" }
client.create :group, { name: "Api", description: "YoolinkPro Api", category: "Yoolinkpro" }* Update our previous user
client.update :user, 1, { firstname: "John" }
## Configuration for Ruby on Rails
add config/initializers/load_yoolinkpro.rb
Yoolinkpro.configure do |config|
config.public_key = 'public_key'
config.private_key = 'private_key'
config.admin_key = 'admin_key'
endyp_api = Yoolinkpro::Client.new
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request