Last active
December 17, 2015 08:59
-
-
Save tsux89/5584357 to your computer and use it in GitHub Desktop.
「餃子の王将」を成功させたい人のためのスクリプトです。
クライアント名はTwitter for iPhone(純正公式アプリケーション)です。
OAuthTokenとOAuthTokenSecretを取得したかったらこちら。=> ( https://gist.github.com/tsux89/5568963 )
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding:UTF-8 | |
# ------------REQUIRE MODULES------------- # | |
require 'twitter' | |
require 'pp' | |
# ------------------DEFINE VALUES----------------- # | |
ck = 'IQKbtAYlXLripLGPWd0HUA' | |
cs = 'GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU' | |
at = '' | |
ats = '' | |
# -------------AUTH TWITTER------------- # | |
$tc = Twitter::Client.new( | |
:consumer_key => ck, | |
:consumer_secret => cs, | |
:oauth_token => at, | |
:oauth_token_secret => ats | |
) | |
$tc.update("将") | |
$tc.update("王") | |
$tc.update("の") | |
$tc.update("子") | |
$tc.update("餃") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment