LoginSignup
1
1

More than 5 years have passed since last update.

GitLab APIを利用する

Posted at

GitLabにはAPIが用意されていて、いろいろな情報を取得したり、更新したりすることが出来ます。

準備

まず、APIを利用するには、private tokenが必要になります。

Profile Settings > Access Tokens で表示される画面から生成が可能です。

image

「Name」「Expreis at」の2項目を入力し、「Create Personal Access Token」ボタンを押下すると自動生成されます。

image

あとから、AccessTokenを参照することが出来ないので、必ずコピーしてください。

つなぐ

以下のように指定して、GETで呼び出せばOK。

http://example.com/api/v3/projects?private_token=5C2Aos5ch7CFePyeZGf3
1
1
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
1
1