Mac OSX éå®ã§ãããTwitterã®APIã使ããã«ãã¿ã¼ããã«ãããã¤ãã¿ã¼ã«æããæ¹æ³ãã¢ãªã¾ãã
terminal-share ã³ãã³ãã§Twitterã«æããã
(tweet)
OSXã®æ¨æºã®ã½ã¼ã·ã£ã«Share æ©è½ã使ã£ã¦TwitterãFacebookã«æ稿ãããã¨ãåºæ¥ã¾ãã
æ稿ãããç»åãã¡ã¤ã«ã決ã¾ã£ã¦ãå ´åã¯ãã£ã¡ã使ãã»ãã楽ã ã£ãããã¾ãã
ã³ãã³ãã¯æ¬¡ã®éã
Twitterã«æ稿ããå ´å
terminal-share -service twitter -text "ãã¹ããã¤ã¼ã" -image test.PNG
Facebookã«æ稿ããå ´å
terminal-share -service facebook -text "ãã¹ãããã" -image test.PNG
ç»åã®ä»ã«ãURLããããªããé¸ã¹ã
ãªãã·ã§ã³å¼æ°ã¯ãããªæã
ãªãã·ã§ã³ãæå®ããã¨ç°¡åã«ãã¡ã¤ã«ãShareåºæ¥ãã便å©ã
Arguments: -service A short string corresponding to the name of a particular NSSharingService to be used. Available values: twitter, sinaweibo, email, message, airdrop, iphoto, aperture, facebook, flickr, vimeo, youku, tudou -text Text to be shared (optional) -image Image to be shared (optional) -video Video to be shared (optional) -url URL to be shared (optional)
share ã£ã¦ iphotoã youku ã使ãããã§ãããé©ããæ¥æ¬èªMacOSXã ã¨è¨å®ããåºã¦ããªãã®ã«ãªã
terminal-share ã®ã¤ã³ã¹ãã¼ã«
ruby ã§ããgemããå ¥ãã¾ãã
gem install terminal-share
Twitterãã使ããªãã®ã§ã©ããã¼æ¸ãã¦ããã
ç§ã¯ãFacebookã«ãã¾ãæ¸ãè¾¼ããã¨ãããªãã®ã§ãTwitterã ãã«ã¬ã³ã¬ã³æ稿ã§ããããã«ãã·ã§ã¼ãã«ãããä½ã£ã¦ããã
takuya@rena:~/Desktop$ ./twitter_tweet -h Usage: twitter_tweet [options] -i, --image [image] Set Image to tweet -u, --url [url] Set URL to tweet -v, --video [video] Set video to tweet