Created
July 5, 2022 23:58
-
-
Save lobot/e0c00238616c9ebefee3799489895699 to your computer and use it in GitHub Desktop.
help-center-mass-delete-create-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 postCardExample: PostcardEditable = { | |
to: { | |
company: "HARRY ZHANG", | |
address_line1: "210 KING STREET", | |
address_city: "SAN FRANCISCO", | |
address_state: "CA", | |
address_zip: "94107", | |
address_country: CountryExtended.Us, | |
}, | |
from: { | |
company: "LEORE AVIDAR", | |
address_line1: "185 BERRY ST", | |
address_line2: "SUITE 6100", | |
address_city: "SAN FRANCISCO", | |
address_state: "CA", | |
address_zip: "94107", | |
address_country: CountryExtended.Us, | |
}, | |
front = "<html style='padding: 1in; font-size: 50;'>Front HTML</html>", | |
back = "<html style='padding: 1in; font-size: 20;'>Back HTML</html>", | |
metadata: { | |
batch_id: "NEWYORK2022" | |
} | |
}; | |
const postcardsApi = new PostcardsApi(config); | |
const postcard = await postcardsApi.create(postCardExample); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment