Created
July 6, 2022 00:00
-
-
Save lobot/32bfdc38f917bef51d445047360385ec to your computer and use it in GitHub Desktop.
help-center-mass-delete-create-yourdb-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: { | |
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