Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lobot/e0c00238616c9ebefee3799489895699 to your computer and use it in GitHub Desktop.
Save lobot/e0c00238616c9ebefee3799489895699 to your computer and use it in GitHub Desktop.
help-center-mass-delete-create-typescript
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