Skip to content

Commit

Permalink
setup action to upload Cloud API collection
Browse files Browse the repository at this point in the history
Differential Revision: D64897875

fbshipit-source-id: 28dd3fc879716dbcf8e9e6a25547d9eb4e3f192a
  • Loading branch information
Gaafar authored and facebook-github-bot committed Oct 25, 2024
1 parent 8616936 commit d591a56
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 73 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/postman-sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,14 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Upload Collection
- name: Upload Flows Collection
run: |
curl -L -f -X PUT 'https://api.getpostman.com/collections/24926895-7bf51205-92ed-49d1-af4a-0130cf84b6f6' \
curl -L -X PUT 'https://api.getpostman.com/collections/24926895-7bf51205-92ed-49d1-af4a-0130cf84b6f6' \
--header 'X-Api-Key: ${{ secrets.POSTMAN_API_KEY }}' \
-F 'collection=@postman/v1/whatsapp-flows-api.postman_collection.json;type=application/json'
- name: Upload Cloud API Collection
run: |
curl -L -X PUT 'https://api.getpostman.com/collections/13382743-84d01ff8-4253-4720-b454-af661f36acc2' \
--header 'X-Api-Key: ${{ secrets.POSTMAN_API_KEY }}' \
-F 'collection=@postman/v1/whatsapp-cloud-api.postman_collection.json;type=application/json'
86 changes: 15 additions & 71 deletions postman/v1/whatsapp-cloud-api.postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -1652,11 +1652,7 @@
"type": "text"
}
],
"cookie": [
{
"expires": "Invalid Date"
}
],
"cookie": [],
"body": "{\n \"success\": true\n}"
}
]
Expand Down Expand Up @@ -2584,11 +2580,7 @@
"type": "text"
}
],
"cookie": [
{
"expires": "Invalid Date"
}
],
"cookie": [],
"body": "{\n \"messaging_product\": \"whatsapp\",\n \"contacts\": [{\n \"input\": \"15555551234\",\n \"wa_id\": \"<WHATSAPP_ID>\"\n }],\n \"messages\": [{\n \"id\": \"wamid.ID\"\n }]\n}"
}
]
Expand Down Expand Up @@ -2848,11 +2840,7 @@
"value": "application/json"
}
],
"cookie": [
{
"expires": "Invalid Date"
}
],
"cookie": [],
"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}"
}
]
Expand Down Expand Up @@ -3025,11 +3013,7 @@
"value": "application/json"
}
],
"cookie": [
{
"expires": "Invalid Date"
}
],
"cookie": [],
"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}"
}
]
Expand Down Expand Up @@ -3210,11 +3194,7 @@
"type": "text"
}
],
"cookie": [
{
"expires": "Invalid Date"
}
],
"cookie": [],
"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}"
}
]
Expand Down Expand Up @@ -3400,11 +3380,7 @@
"type": "text"
}
],
"cookie": [
{
"expires": "Invalid Date"
}
],
"cookie": [],
"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}"
}
]
Expand Down Expand Up @@ -3590,11 +3566,7 @@
"type": "text"
}
],
"cookie": [
{
"expires": "Invalid Date"
}
],
"cookie": [],
"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}"
}
]
Expand Down Expand Up @@ -3780,11 +3752,7 @@
"type": "text"
}
],
"cookie": [
{
"expires": "Invalid Date"
}
],
"cookie": [],
"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}"
}
]
Expand Down Expand Up @@ -3970,11 +3938,7 @@
"type": "text"
}
],
"cookie": [
{
"expires": "Invalid Date"
}
],
"cookie": [],
"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}"
}
]
Expand Down Expand Up @@ -4160,11 +4124,7 @@
"type": "text"
}
],
"cookie": [
{
"expires": "Invalid Date"
}
],
"cookie": [],
"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}"
}
]
Expand Down Expand Up @@ -4350,11 +4310,7 @@
"type": "text"
}
],
"cookie": [
{
"expires": "Invalid Date"
}
],
"cookie": [],
"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}"
}
]
Expand Down Expand Up @@ -4540,11 +4496,7 @@
"type": "text"
}
],
"cookie": [
{
"expires": "Invalid Date"
}
],
"cookie": [],
"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}"
}
]
Expand Down Expand Up @@ -5458,11 +5410,7 @@
"type": "text"
}
],
"cookie": [
{
"expires": "Invalid Date"
}
],
"cookie": [],
"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}"
}
]
Expand Down Expand Up @@ -7587,11 +7535,7 @@
"value": "application/json"
}
],
"cookie": [
{
"expires": "Invalid Date"
}
],
"cookie": [],
"body": ""
}
]
Expand Down Expand Up @@ -8683,4 +8627,4 @@
}
}
]
}
}

0 comments on commit d591a56

Please sign in to comment.