Contents
みんなのいいねを取得する
他のメンバーがいいねしたメッセージを取得します。
メソッド
GET
URL
https://typetalk.com/api/v1/spaces/:spaceKey/likes/discover
スコープ
my
URL パラメーター
名前 | 型 | 説明 |
---|---|---|
spaceKey | 文字列 | 組織キー |
クエリパラメーター
名前 | 型 | 説明 |
---|---|---|
from (任意) | 数値 | いいね ID |
レスポンスの例
{
"likedPosts": [
{
"post": {
"id": 309,
"topicId": 203,
"replyTo": null,
"message": "@jessica Help me!",
"account": {
"id": 102,
"name": "moss",
"fullName": "Moss",
"suggestion": "Moss",
"imageUrl": "https://typetalk.com/accounts/102/profile_image.png?t=1403749949000",
"isBot": false,
"createdAt": "2014-06-26T02:32:29Z",
"updatedAt": "2014-06-26T02:32:29Z"
},
"attachments": [],
"likes": [
{
"id": 605,
"postId": 309,
"topicId": 203,
"comment": "",
"account": {
"id": 100,
"name": "jessica",
"fullName": "Jessica Fitzherbert",
"suggestion": "Jessica Fitzherbert",
"imageUrl": "https://typetalk.com/accounts/100/profile_image.png?t=1403577149000",
"isBot": false,
"createdAt": "2014-06-24T02:32:29Z",
"updatedAt": "2014-06-24T02:32:29Z"
},
"createdAt": "2016-12-21T10:12:06Z"
}
],
"talks": [],
"links": [],
"createdAt": "2014-07-02T03:32:29Z",
"updatedAt": "2014-07-02T03:32:29Z"
},
"topic": {
"id": 203,
"name": "Techies",
"suggestion": "Techies",
"isDirectMessage": false,
"lastPostedAt": "2014-06-30T02:32:29Z",
"createdAt": "2014-06-05T02:32:29Z",
"updatedAt": "2014-06-05T02:32:29Z"
},
"directMessage": null
},
{
"post": {
"id": 308,
"topicId": 202,
"replyTo": null,
"message": "@jessica What do you think about this?",
"account": {
"id": 101,
"name": "ahorowitz",
"fullName": "AHorowitz",
"suggestion": "AHorowitz",
"imageUrl": "https://typetalk.com/accounts/101/profile_image.png?t=1403663549000",
"isBot": false,
"createdAt": "2014-06-25T02:32:29Z",
"updatedAt": "2014-06-25T02:32:29Z"
},
"attachments": [],
"likes": [
{
"id": 604,
"postId": 308,
"topicId": 202,
"comment": "",
"account": {
"id": 100,
"name": "jessica",
"fullName": "Jessica Fitzherbert",
"suggestion": "Jessica Fitzherbert",
"imageUrl": "https://typetalk.com/accounts/100/profile_image.png?t=1403577149000",
"isBot": false,
"createdAt": "2014-06-24T02:32:29Z",
"updatedAt": "2014-06-24T02:32:29Z"
},
"createdAt": "2016-12-21T10:12:06Z"
}
],
"talks": [],
"links": [],
"createdAt": "2014-07-01T03:32:29Z",
"updatedAt": "2014-07-01T03:32:29Z"
},
"topic": {
"id": 202,
"name": "Arts & Crafts Club",
"description": "",
"suggestion": "Arts & Crafts Club",
"isDirectMessage": false,
"lastPostedAt": "2014-06-30T02:32:29Z",
"createdAt": "2014-06-04T02:32:29Z",
"updatedAt": "2014-06-04T02:32:29Z"
},
"directMessage": null
}
]
}
レスポンスのフォーマットは全て JSON です。GET メソッドは ETag に対応しているので、If-None-Match ヘッダを付けて送ると、変更がない場合は 304 を返します。日付のフォーマットは ISO 8601 で、UTC です。 (例 : 2014-01-09T06:20:08Z )