GET /api/v1/notifications

通知一覧を作成日時の降順で取得する。

入力値

名前 必須 説明
unread String 未読のものだけに絞り込むかどうか。"1" のみ有効

curl -H "Authorization: Bearer ${ACCESS_TOKEN}" https://wikihub.io/api/v1/notifications?unread=1
[
  {
    "community": {
      "created_at": "2016-02-22T00:40:36+09:00",
      "domain_name": "sandbox",
      "id": 7,
      "name": "砂場",
      "updated_at": "2016-06-18T01:29:34+09:00"
    },
    "created_at": "2016-03-11T04:01:07+09:00",
    "id": 1,
    "sender": {
      "created_at": "2016-02-13T05:17:17+09:00",
      "id": 2,
      "image_url": "http://pbs.twimg.com/profile_images/519846472406151169/5GrJiV-2_normal.jpeg",
      "name": "r7kamura"
    },
    "title": "2016-03-11 日報",
    "type": "ArticleReactionNotification",
    "url": "http://wikihub.io/notifications/1"
  }
]

Notification

typeプロパティの値は、以下のいずれかの値となる。

  • "ArticleCommentMentionNotification"
  • "ArticleCommentNotification"
  • "ArticleCommentReactionNotification"
  • "ArticleMentionNotification"
  • "ArticleReactionNotification"
  • "ArticleReferenceNotification"
  • "IssueCommentMentionNotification"
  • "IssueCommentNotification"
  • "IssueCommentReactionNotification"
  • "IssueMentionNotification"
  • "IssueReactionNotification"
  • "PageMentionNotification"