Created
February 11, 2013 00:55
-
-
Save popowa/4751772 to your computer and use it in GitHub Desktop.
This file contains 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
require 'xmlrpc/client' | |
host = '自分のBacklogのサブドメイン.backlog.jp' | |
path = '/XML-RPC' | |
port = '443' | |
proxy_host = nil | |
proxy_port = nil | |
user = 'ユーザー名' | |
password = 'パスワード' | |
use_ssl = true | |
timeout = 60 | |
client = XMLRPC::Client.new(host, path, port, proxy_host, proxy_port, user, password, use_ssl, timeout) | |
begin | |
#プロジェクト情報が表示される | |
#result = client.call('backlog.getProject', プロジェクト番号) | |
#ユーザー情報が表示される | |
#result = client.call('backlog.getUsers', ユーザー番号 ) | |
#自分のタイムラインが表示される(重い) | |
#result = client.call('backlog.getTimeline') | |
puts result | |
rescue XMLRPC::FaultException => e | |
puts "fault #{e.faultCode}: #{e.faultString}" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment