Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
help-center-mass-delete-create-yourdb-typescript
const config: Configuration = new Configuration({
username: "test_XXXXXXXXX",
});
const postCardExample: PostcardEditable = {
to: {
name: "HARRY ZHANG",
address_line1: "210 KING STREET",
address_city: "SAN FRANCISCO",
address_state: "CA",
address_zip: "94107",
address_country: CountryExtended.Us,
},
from: {
name: "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,
}
};
const postcardsApi = new PostcardsApi(config);
const postcard = await postcardsApi.create(postCardExample);
/* Save to your database with the postcard.id and a unique group id */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment