YikYak Ruby Library
Dependencies
- HTTParty:
gem install httparty - JWT:
gem install jwt
Installation
You can do any of the following:
- Run
gem install yikyakin your command line. - Add
gem 'yikyak'to yourGemfile - Clone the repository and build the gem:
git clone https://github.com/ferrerluis/yikyak.git && cd yikyakgem build yikyak-0.1.0.gemgem install ./yikyak-0.1.0.gem
Usage
- Require the library:
require 'yikyak'. - Create a YikYak instance:
yak = YikYak.new user_token, app_id, secret_key. - Use the functions available from the
yakinstance.
Functions
set_status
If it goes through, the function returns true. Returns false otherwise.
if yak.set_status "JustChillin"
p "Worked"
else
p "Failed"
end