4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Octokit | octokit によって API 経由で GitHub を利用する #octokit

Posted at

Octokit | octokit によって API 経由で GitHub を利用する #octokit

概要

GitHub の Ruby 向け API ラッパー octokit gem によって API 経由で GitHub を利用します。

インストール

$ gem install octokit

疎通確認

GitHub でアクセストークンを作成して、疎通確認してみます。

require 'octokit'
client = Octokit::Client.new(:access_token => "<your 40 char token>")
print client.user["login"]
  • 出力
tbpgr

参照

4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?