# -*- coding: utf-8 -*- # # yo_update.rb - Japanese resource # # Copyright (C) 2014, zunda # # Permission is granted for use, copying, modification, # distribution, and distribution of modified versions of this # work under the terms of GPL version 2 or later. # def yo_update_conf_label '更新時にYoを送る' end def yo_update_test_result_label(username, result) "- #{h username} に Yo を送りました: #{h result}" end def yo_update_conf_html(conf, n_subscribers, test_result) action_label = { 'send_on_update' => '日記が追加された時', 'send_on_comment' => 'ツッコミされた時', } <<-HTML

API key

Username

Yo を送るタイミング

Yo をにリンク(不要なら空白)をつけて送ってみる#{test_result}

現在の受信者数

#{h n_subscribers}

Yoボタン

ページのどこかに下記を追加してください

<div id="yo-button"></div>

やり方

  1. 個人用 Yo アカウントで http://dev.justyo.co/ にログインする
  2. ページ内の指示に従って APIアカウントを作成する。 Callback URL は空白のままにしてください
  3. API key と API username を上にコピーする
HTML end