Twoffein-Client
Client-Version: 0.1.0 | API-Version: 0.2
This client for Twoffein's API.
Installation
Add this line to your application's Gemfile:
gem 'twoffein-client'
And then execute:
$ bundle
Or install it yourself as:
$ gem install twoffein-client
Usage
NAME
twoffein-client - Client for API 0.2 twoffein.de
SYNOPSIS
twoffein-client [global ] command [command ] [arguments...]
VERSION
0.1.0
GLOBAL OPTIONS
--help - Show this
--version - Show version
COMMANDS
- Give to RECEIVER
drinks - List all drinks
help - Shows a list of commands or help for one command
profile - List the profile, which you have chosen by PROFILE
tweet - Tweet your drinking DRINK
Credentials
You need your credentials (screen_name, api_key) to get access to the Twoffein-API. Please set these as
shell environment variables TWOFFEIN_SCREEN_NAME
and TWOFFEIN_API_KEY
. Thank's!
TWOFFEIN_SCREEN_NAME=NAME TWOFFEIN_API_KEY=KEY twoffein-client drinks
Examples
Drinks
Input:
twoffein-client drinks
Output:
Drink (key)
--------------------------------------------
Kaffee (kaffee)
Milchkaffee (milchkaffee)
Eiskaffee (eiskaffee)
Energy Drink (energiedrink)
Cola (cola)
Cola Light (colalight)
Cola Zero (colazero)
Cola-Mix (colamix)
Cola-Mix Light (colamixlight)
Cola-Mix Zero (colamixzero)
Bubble Tea (bubbletea)
Cherry Cola (cherrycola)
Vanilla Cola (vanillacola)
Caff
Drinks (filtered)
Input:
twoffein-client drinks --grep club
Output:
Drink (key)
------------------------------
Club-Mate (clubmate)
Club-Mate Cola (clubmatecola)
Profile
Input:
twoffein-client profile
Output:
Quest: Blitzlicht
Drink: Club-Mate
Rank: 74
Rank Title: Kaffeek
Cookie
Input:
twoffein-client DSIW
Output:
Lol.
Notice: You can't send yourself a cookie.
Tweet
Input:
twoffein-client tweet clubmate
Output:
Ich trinke gerade Club-Mate.
Info: Youre Tweet has been tweeted. Thanks.
Drinks today: 2
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request