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/32bfdc38f917bef51d445047360385ec to your computer and use it in GitHub Desktop.
Save lobot/32bfdc38f917bef51d445047360385ec to your computer and use it in GitHub Desktop.
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