menu MDClub API ๆ–‡ๆกฃ

Notification:getCount

ๆณจๆ„๏ผš่ฏฅๆŽฅๅฃ้œ€่ฆ็™ป้™†ๅŽๆ‰่ƒฝ่ฐƒ็”จใ€‚

่Žทๅ–ๆœช่ฏป้€š็Ÿฅๆ•ฐ้‡ใ€‚

HTTP ่ฏทๆฑ‚

GET /api/notifications/count

ๅ‚ๆ•ฐ

ๅ‚ๆ•ฐๅ ๅ‚ๆ•ฐไฝ็ฝฎ ็ฑปๅž‹ ้ป˜่ฎคๅ€ผ ่ฏดๆ˜Ž
type query string

้€š็Ÿฅ็ฑปๅž‹

ๅ–ๅ€ผ่Œƒๅ›ดๅŒ…ๆ‹ฌ๏ผšquestion_answered, question_commented, question_deleted, article_commented, article_deleted, answer_commented, answer_deleted, comment_replied, comment_deleted

ๅ“ๅบ”

ๆœช่ฏป้€š็Ÿฅๆ•ฐ้‡

็คบไพ‹

{
  "code": 0,
  "data": {
    "notification_count": 12
  }
}

ๅ‚ๆ•ฐ่ฏดๆ˜Ž

ๅ‚ๆ•ฐๅ ็ฑปๅž‹ ่ฏดๆ˜Ž
code integer

ๆ— ไปปไฝ•้”™่ฏฏๆ—ถ๏ผŒ็Šถๆ€็ ไธบ 0

data.notification_count integer

ๆœช่ฏป้€š็Ÿฅๆ•ฐ้‡