penguin2716 / mikutter_account_manager

mikutterでプロフィールの設定をするためのプラグイン

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

これはなに

mikutterでTwitterのプロフィールとかを設定するためのプラグインです. 投稿ボックスに

AccountManager::update_profile name: "ぺんぎんさんだよー"

とか入力して Ctrl-Return すると名前(表示名)の変更ができたりします.

機能

設定を取得

Deferredが返ってくるので,適宜利用してください.

AccountManager::settings

認証情報を取得

Deferredが返ってくるので,適宜利用してください.

AccountManager::verify_credentials

基本設定変更

<引数>

keycontentconditionrequire?
trend_location_woeidトレンド表示に使用するWhere On Earth IDcf. GET trends/availableoptional
sleep_time_enabled就寝時間中の通知をオフにするtrue,t,1optional
start_sleep_time何時から寝るか00-23optional
end_sleep_time何時に起きるか00-23optional
time_zoneTimeZone設定Rails TimeZone namesoptional
lang言語設定cf. GET help/languagesoptional
AccountManager::settings lang: 'en'

通知設定

<引数>

keycontentconditionrequire?
device通知のON/OFF設定sms or nonerequired
include_entitiestrue,t,1optional
AccountManager::update_delivery_device device: none

背景画像変更

<引数>

keycontentconditionrequire?
imageBase64エンコードされた背景画像GIF,JPG,PNG,<800kBoptional
tileタイル状にするかtrue,t,1optional
include_entitiestrue,falseoptional
skip_statustrue,t,1optional
use背景画像色を使用するかどうかtrue,t,1optional
AccountManager::update_profile_background_image image: "iVBORw0KGgoAA..."

プロフィールの色設定

<引数>

keycontentconditionrequire?
profile_background_colorプロフィール背景色3 or 6文字optional
profile_link_colorリンクの色3 or 6文字optional
profile_sidebar_border_colorサイドバーのborder色3 or 6文字optional
profile_sidebar_fill_colorサイドバーの背景色3 or 6文字optional
profile_text_colorプロフィールのテキストの色3 or 6文字optional
include_entitiestrue,falseoptional
skip_statustrue,t,1optional
AccountManager::update_profile_colors profile_background_color: "AF48DD"

プロフィール変更

<引数>

keycontentconditionrequire?
name名前20文字までoptional
urlホームページ100文字までoptional
location場所30文字までoptional
description自己紹介160文字までoptional
include_entitiestrue,falseoptional
skip_statustrue,t,1optional
AccountManager::update_profile name: "ぺんぎんさん", location: "研究室"

アイコン変更

<引数>

keycontentconditionrequire?
imageBase64エンコードされた画像ファイルGIF,JPG,PNG,<700kBrequired
include_entitiestrue,falseoptional
skip_statustrue,t,1optional
AccountManager::update_profile_background_image image: "iVBORw0KGgoAA..."

アップロード済みのバナー画像を削除

AccountManager::remove_profile_banner

バナー画像の設定

<引数>

keycontentconditionrequire?
bannerBase64エンコードされた画像<5MBrequired
width画像を切り抜く際の幅require height,offset_left,offset_topoptional
height画像を切り抜く際の高さrequire width, offset_left,offset_topoptional
offset_left画像を切り抜く際の左オフセットrequire width,height, offset_topoptional
offset_top画像を切り抜く際の上オフセットrequire width,height,offset_leftoptional
AccountManager::update_profile_banner banner: "iVBORw0KGgoAA..."

備考

画像はBase64エンコードする必要があります.shell_postプラグインが入っていれば,

@system
require 'base64'
AccountManager::update_profile_image image: Base64.encode64(open('path/to/image.png').read)

を投稿ボックスに入力してCtrl-Returnすればアイコンが変更できます.

About

mikutterでプロフィールの設定をするためのプラグイン


Languages

Language:Ruby 100.0%