LoginSignup
1
0

More than 5 years have passed since last update.

wercker APIの使い方

Posted at

現在のところ、提供されているendpointは4つ。今後拡充していくとのこと。

  1. applications
  2. runs
  3. builds(古いstackのユーザー向け。新しいユーザーはrunsを使うこと)
  4. deploys(古いstackのユーザー向け。新しいユーザーはrunsを使うこと)

トークンの取得方法

画面右上の自分のアバター→Settings→Personal tokens からトークンを発行できる。トークン発行後は見えなくなるのでメモしておくこと。

image.png

application一覧

※$WERCKER_USERNAMEはログインするときの名前

curl -H "Authorization: Bearer $TOKEN" https://app.wercker.com/api/v3/applications/$WERCKER_USERNAME

runs一覧

※$APPLICATION_IDは24桁の文字列

curl -H "Authorization: Bearer $TOKEN" "https://app.wercker.com/api/v3/runs?applicationId=$APPLICATION_ID"

公式ドキュメント

1
0
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
0