Skip to content

Commit d591a56

Browse files
Gaafarfacebook-github-bot
authored andcommitted
setup action to upload Cloud API collection
Differential Revision: D64897875 fbshipit-source-id: 28dd3fc879716dbcf8e9e6a25547d9eb4e3f192a
1 parent 8616936 commit d591a56

File tree

2 files changed

+23
-73
lines changed

2 files changed

+23
-73
lines changed

.github/workflows/postman-sync.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,14 @@ jobs:
1313
- name: Checkout code
1414
uses: actions/checkout@v4
1515

16-
- name: Upload Collection
16+
- name: Upload Flows Collection
1717
run: |
18-
curl -L -f -X PUT 'https://api.getpostman.com/collections/24926895-7bf51205-92ed-49d1-af4a-0130cf84b6f6' \
18+
curl -L -X PUT 'https://api.getpostman.com/collections/24926895-7bf51205-92ed-49d1-af4a-0130cf84b6f6' \
1919
--header 'X-Api-Key: ${{ secrets.POSTMAN_API_KEY }}' \
2020
-F 'collection=@postman/v1/whatsapp-flows-api.postman_collection.json;type=application/json'
21+
22+
- name: Upload Cloud API Collection
23+
run: |
24+
curl -L -X PUT 'https://api.getpostman.com/collections/13382743-84d01ff8-4253-4720-b454-af661f36acc2' \
25+
--header 'X-Api-Key: ${{ secrets.POSTMAN_API_KEY }}' \
26+
-F 'collection=@postman/v1/whatsapp-cloud-api.postman_collection.json;type=application/json'

postman/v1/whatsapp-cloud-api.postman_collection.json

Lines changed: 15 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -1652,11 +1652,7 @@
16521652
"type": "text"
16531653
}
16541654
],
1655-
"cookie": [
1656-
{
1657-
"expires": "Invalid Date"
1658-
}
1659-
],
1655+
"cookie": [],
16601656
"body": "{\n \"success\": true\n}"
16611657
}
16621658
]
@@ -2584,11 +2580,7 @@
25842580
"type": "text"
25852581
}
25862582
],
2587-
"cookie": [
2588-
{
2589-
"expires": "Invalid Date"
2590-
}
2591-
],
2583+
"cookie": [],
25922584
"body": "{\n \"messaging_product\": \"whatsapp\",\n \"contacts\": [{\n \"input\": \"15555551234\",\n \"wa_id\": \"<WHATSAPP_ID>\"\n }],\n \"messages\": [{\n \"id\": \"wamid.ID\"\n }]\n}"
25932585
}
25942586
]
@@ -2848,11 +2840,7 @@
28482840
"value": "application/json"
28492841
}
28502842
],
2851-
"cookie": [
2852-
{
2853-
"expires": "Invalid Date"
2854-
}
2855-
],
2843+
"cookie": [],
28562844
"body": "{\n \"messaging_product\": \"whatsapp\",\n \"contacts\": [\n {\n \"input\": \"48XXXXXXXXX\",\n \"wa_id\": \"48XXXXXXXXX \"\n }\n ],\n \"messages\": [\n {\n \"id\": \"wamid.gBGGSFcCNEOPAgkO_KJ55r4w_ww\"\n }\n ]\n}"
28572845
}
28582846
]
@@ -3025,11 +3013,7 @@
30253013
"value": "application/json"
30263014
}
30273015
],
3028-
"cookie": [
3029-
{
3030-
"expires": "Invalid Date"
3031-
}
3032-
],
3016+
"cookie": [],
30333017
"body": "{\n \"messaging_product\": \"whatsapp\",\n \"contacts\": [\n {\n \"input\": \"48XXXXXXXXX\",\n \"wa_id\": \"48XXXXXXXXX \"\n }\n ],\n \"messages\": [\n {\n \"id\": \"wamid.gBGGSFcCNEOPAgkO_KJ55r4w_ww\"\n }\n ]\n}"
30343018
}
30353019
]
@@ -3210,11 +3194,7 @@
32103194
"type": "text"
32113195
}
32123196
],
3213-
"cookie": [
3214-
{
3215-
"expires": "Invalid Date"
3216-
}
3217-
],
3197+
"cookie": [],
32183198
"body": "{\n \"messaging_product\": \"whatsapp\",\n \"contacts\": [\n {\n \"input\": \"48XXXXXXXXX\",\n \"wa_id\": \"48XXXXXXXXX \"\n }\n ],\n \"messages\": [\n {\n \"id\": \"wamid.gBGGSFcCNEOPAgkO_KJ55r4w_ww\"\n }\n ]\n}"
32193199
}
32203200
]
@@ -3400,11 +3380,7 @@
34003380
"type": "text"
34013381
}
34023382
],
3403-
"cookie": [
3404-
{
3405-
"expires": "Invalid Date"
3406-
}
3407-
],
3383+
"cookie": [],
34083384
"body": "{\n \"messaging_product\": \"whatsapp\",\n \"contacts\": [\n {\n \"input\": \"48XXXXXXXXX\",\n \"wa_id\": \"48XXXXXXXXX \"\n }\n ],\n \"messages\": [\n {\n \"id\": \"wamid.gBGGSFcCNEOPAgkO_KJ55r4w_ww\"\n }\n ]\n}"
34093385
}
34103386
]
@@ -3590,11 +3566,7 @@
35903566
"type": "text"
35913567
}
35923568
],
3593-
"cookie": [
3594-
{
3595-
"expires": "Invalid Date"
3596-
}
3597-
],
3569+
"cookie": [],
35983570
"body": "{\n \"messaging_product\": \"whatsapp\",\n \"contacts\": [\n {\n \"input\": \"48XXXXXXXXX\",\n \"wa_id\": \"48XXXXXXXXX \"\n }\n ],\n \"messages\": [\n {\n \"id\": \"wamid.gBGGSFcCNEOPAgkO_KJ55r4w_ww\"\n }\n ]\n}"
35993571
}
36003572
]
@@ -3780,11 +3752,7 @@
37803752
"type": "text"
37813753
}
37823754
],
3783-
"cookie": [
3784-
{
3785-
"expires": "Invalid Date"
3786-
}
3787-
],
3755+
"cookie": [],
37883756
"body": "{\n \"messaging_product\": \"whatsapp\",\n \"contacts\": [\n {\n \"input\": \"48XXXXXXXXX\",\n \"wa_id\": \"48XXXXXXXXX \"\n }\n ],\n \"messages\": [\n {\n \"id\": \"wamid.gBGGSFcCNEOPAgkO_KJ55r4w_ww\"\n }\n ]\n}"
37893757
}
37903758
]
@@ -3970,11 +3938,7 @@
39703938
"type": "text"
39713939
}
39723940
],
3973-
"cookie": [
3974-
{
3975-
"expires": "Invalid Date"
3976-
}
3977-
],
3941+
"cookie": [],
39783942
"body": "{\n \"messaging_product\": \"whatsapp\",\n \"contacts\": [\n {\n \"input\": \"48XXXXXXXXX\",\n \"wa_id\": \"48XXXXXXXXX \"\n }\n ],\n \"messages\": [\n {\n \"id\": \"wamid.gBGGSFcCNEOPAgkO_KJ55r4w_ww\"\n }\n ]\n}"
39793943
}
39803944
]
@@ -4160,11 +4124,7 @@
41604124
"type": "text"
41614125
}
41624126
],
4163-
"cookie": [
4164-
{
4165-
"expires": "Invalid Date"
4166-
}
4167-
],
4127+
"cookie": [],
41684128
"body": "{\n \"messaging_product\": \"whatsapp\",\n \"contacts\": [\n {\n \"input\": \"48XXXXXXXXX\",\n \"wa_id\": \"48XXXXXXXXX \"\n }\n ],\n \"messages\": [\n {\n \"id\": \"wamid.gBGGSFcCNEOPAgkO_KJ55r4w_ww\"\n }\n ]\n}"
41694129
}
41704130
]
@@ -4350,11 +4310,7 @@
43504310
"type": "text"
43514311
}
43524312
],
4353-
"cookie": [
4354-
{
4355-
"expires": "Invalid Date"
4356-
}
4357-
],
4313+
"cookie": [],
43584314
"body": "{\n \"messaging_product\": \"whatsapp\",\n \"contacts\": [\n {\n \"input\": \"48XXXXXXXXX\",\n \"wa_id\": \"48XXXXXXXXX \"\n }\n ],\n \"messages\": [\n {\n \"id\": \"wamid.gBGGSFcCNEOPAgkO_KJ55r4w_ww\"\n }\n ]\n}"
43594315
}
43604316
]
@@ -4540,11 +4496,7 @@
45404496
"type": "text"
45414497
}
45424498
],
4543-
"cookie": [
4544-
{
4545-
"expires": "Invalid Date"
4546-
}
4547-
],
4499+
"cookie": [],
45484500
"body": "{\n \"messaging_product\": \"whatsapp\",\n \"contacts\": [\n {\n \"input\": \"48XXXXXXXXX\",\n \"wa_id\": \"48XXXXXXXXX \"\n }\n ],\n \"messages\": [\n {\n \"id\": \"wamid.gBGGSFcCNEOPAgkO_KJ55r4w_ww\"\n }\n ]\n}"
45494501
}
45504502
]
@@ -5458,11 +5410,7 @@
54585410
"type": "text"
54595411
}
54605412
],
5461-
"cookie": [
5462-
{
5463-
"expires": "Invalid Date"
5464-
}
5465-
],
5413+
"cookie": [],
54665414
"body": "{\n \"messaging_product\": \"whatsapp\",\n \"contacts\": [{\n \"input\": \"PHONE_NUMBER\",\n \"wa_id\": \"WHATSAPP_ID\"\n }],\n \"messages\": [{\n \"id\": \"wamid.ID\"\n }]\n}"
54675415
}
54685416
]
@@ -7587,11 +7535,7 @@
75877535
"value": "application/json"
75887536
}
75897537
],
7590-
"cookie": [
7591-
{
7592-
"expires": "Invalid Date"
7593-
}
7594-
],
7538+
"cookie": [],
75957539
"body": ""
75967540
}
75977541
]
@@ -8683,4 +8627,4 @@
86838627
}
86848628
}
86858629
]
8686-
}
8630+
}

0 commit comments

Comments
 (0)