Skip to content

Commit 707f54a

Browse files
authored
Merge pull request #35 from fbsamples/polls-api-postman
Update the Postman Collection to include polls
2 parents d0b9382 + ecc6a16 commit 707f54a

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

postman/threads-api.postman_collection.json

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,13 @@
351351
{
352352
"key": "link_attachment",
353353
"value": "https://developers.facebook.com/",
354-
"description": "Attach a link to your post (only available for text posts).",
354+
"description": "Attach a link to your post (only available for text posts, and not compatible with poll attachments).",
355+
"disabled": true
356+
},
357+
{
358+
"key": "poll_attachment",
359+
"value": "{\"option_a\":\"first\",\"option_b\":\"second\",\"option_c\":\"third\",\"option_d\":\"fourth\"}",
360+
"description": "Attach a poll to your post (only available for text posts, and not compatible with link attachments).",
355361
"disabled": true
356362
}
357363
]
@@ -1640,7 +1646,7 @@
16401646
}
16411647
],
16421648
"cookie": [],
1643-
"body": "{\n \"id\": \"string\",\n \"media_product_type\": \"THREADS\",\n \"media_type\": \"TEXT_POST\",\n \"permalink\": \"string\",\n \"owner\": {\n \"id\": \"string\"\n },\n \"username\": \"string\",\n \"text\": \"This is a test post\",\n \"timestamp\": \"2024-09-12T23:17:39+0000\",\n \"shortcode\": \"string\",\n \"is_quote_post\": false,\n \"has_replies\": false\n}"
1649+
"body": "{\n \"id\": \"string\",\n \"media_product_type\": \"THREADS\",\n \"media_type\": \"TEXT_POST\",\n \"permalink\": \"string\",\n \"owner\": {\n \"id\": \"string\"\n },\n \"username\": \"string\",\n \"text\": \"This is a test post\",\n \"timestamp\": \"2024-09-12T23:17:39+0000\",\n \"shortcode\": \"string\",\n \"is_quote_post\": false,\n \"has_replies\": false,\n \"poll_attachment\": {\n \"option_a\": \"first\",\n \"option_b\": \"second\",\n \"option_c\": \"third\",\n \"option_d\": \"fourth\",\n \"option_a_votes_percentage\": 0.25,\n \"option_b_votes_percentage\": 0.25,\n \"option_c_votes_percentage\": 0.25,\n \"option_d_votes_percentage\": 0.25,\n \"expiration_timestamp\": \"2024-09-12T23:17:39+0000\"\n }\n}"
16441650
}
16451651
]
16461652
},
@@ -1763,7 +1769,7 @@
17631769
}
17641770
],
17651771
"cookie": [],
1766-
"body": "{\n \"data\": [\n {\n \"id\": \"string\",\n \"media_product_type\": \"THREADS\",\n \"media_type\": \"TEXT_POST\",\n \"permalink\": \"string\",\n \"owner\": {\n \"id\": \"string\"\n },\n \"username\": \"string\",\n \"text\": \"This is a test post\",\n \"timestamp\": \"2024-09-12T23:17:39+0000\",\n \"shortcode\": \"string\",\n \"is_quote_post\": false,\n \"has_replies\": false\n }\n ],\n \"paging\": {\n \"cursors\": {\n \"before\": \"string\",\n \"after\": \"string\"\n }\n }\n}"
1772+
"body": "{\n \"data\": [\n {\n \"id\": \"string\",\n \"media_product_type\": \"THREADS\",\n \"media_type\": \"TEXT_POST\",\n \"permalink\": \"string\",\n \"owner\": {\n \"id\": \"string\"\n },\n \"username\": \"string\",\n \"text\": \"This is a test post\",\n \"timestamp\": \"2024-09-12T23:17:39+0000\",\n \"shortcode\": \"string\",\n \"is_quote_post\": false,\n \"has_replies\": false,\n \"poll_attachment\": {\n \"option_a\": \"first\",\n \"option_b\": \"second\",\n \"option_c\": \"third\",\n \"option_d\": \"fourth\",\n \"option_a_votes_percentage\": 0.25,\n \"option_b_votes_percentage\": 0.25,\n \"option_c_votes_percentage\": 0.25,\n \"option_d_votes_percentage\": 0.25,\n \"expiration_timestamp\": \"2024-09-12T23:17:39+0000\"\n }\n }\n ],\n \"paging\": {\n \"cursors\": {\n \"before\": \"string\",\n \"after\": \"string\"\n }\n }\n}"
17671773
}
17681774
]
17691775
}
@@ -3001,11 +3007,11 @@
30013007
},
30023008
{
30033009
"key": "fields_threads",
3004-
"value": "id,media_product_type,media_type,media_url,permalink,owner,username,text,timestamp,shortcode,thumbnail_url,children,is_quote_post,quoted_post,reposted_post,has_replies,alt_text,link_attachment_url"
3010+
"value": "id,media_product_type,media_type,media_url,permalink,owner,username,text,timestamp,shortcode,thumbnail_url,children,is_quote_post,quoted_post,reposted_post,has_replies,alt_text,link_attachment_url,poll_attachment{option_a,option_b,option_c,option_d,option_a_votes_percentage,option_b_votes_percentage,option_c_votes_percentage,option_d_votes_percentage,expiration_timestamp}"
30053011
},
30063012
{
30073013
"key": "fields_replies",
3008-
"value": "id,text,timestamp,media_product_type,media_type,media_url,permalink,shortcode,thumbnail_url,username,children,is_quote_post,quoted_post,reposted_post,alt_text,link_attachment_url,has_replies,is_reply,is_reply_owned_by_me,root_post,replied_to,hide_status,reply_audience"
3014+
"value": "id,text,timestamp,media_product_type,media_type,media_url,permalink,shortcode,thumbnail_url,username,children,is_quote_post,quoted_post,reposted_post,alt_text,link_attachment_url,has_replies,is_reply,is_reply_owned_by_me,root_post,replied_to,hide_status,reply_audience,poll_attachment{option_a,option_b,option_c,option_d,option_a_votes_percentage,option_b_votes_percentage,option_c_votes_percentage,option_d_votes_percentage,expiration_timestamp}"
30093015
},
30103016
{
30113017
"key": "fields_profile",

0 commit comments

Comments
 (0)