Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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