Created
July 5, 2022 23:59
-
-
Save lobot/ad968709547f618f330586a1166c8783 to your computer and use it in GitHub Desktop.
help-center-mass-delete-cancel-typescript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const config: Configuration = new Configuration({ | |
username: "test_XXXXXXXXX", | |
}); | |
const postcardsApi = new PostcardsApi(config); | |
const listOfPostcards = await postcardsApi.list( | |
undefined, | |
undefined, | |
undefined, | |
undefined, | |
undefined, | |
{ batch_id: "NEWYORK2022" } | |
); | |
for (let postcard of listOfPostcards) { | |
await postcardsApi.cancel(postcard.id); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment