This file contains hidden or 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
| import easypost | |
| from easypost.errors import EasyPostError | |
| from typing import List | |
| # Replace with your real child users | |
| CHILD_USERS = [ | |
| {"name": "Child A", "api_key": "PROD_CHILD_KEY_1"}, | |
| {"name": "Child B", "api_key": "PROD_CHILD_KEY_2"}, | |
| ] |
This file contains hidden or 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
| // save as scrape-manifests.js | |
| // Usage: node scrape-manifests.js | |
| import fs from "node:fs/promises"; | |
| // Base URL for docs | |
| const BASE = "https://docs.easypost.com"; | |
| // Carrier paths + display names (from your HTML snippet) | |
| const carriers = [ |
This file contains hidden or 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
| require("dotenv").config(); | |
| const Easypost = require("@easypost/api"); | |
| const api = new Easypost(process.env.PRODUCTION_KEY); | |
| //WARINGING this will refund/void all production labels in "pre_transit" or "unknown" status after the start date | |
| api.Shipment.all({ | |
| page_size: 200, | |
| start_datetime: "2023-1-1", // should be less than 30 days. | |
| }).then((s) => { |
This file contains hidden or 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 Easypost = require("@easypost/api"); | |
| const api = new Easypost( | |
| //Your API Key Here Like "E123456asdfjk" | |
| ); | |
| const ca = new api.CarrierAccount({ | |
| type: "DhlExpressAccount", | |
| description: "My Description", | |
| reference: "my-reference", | |
| credentials: { |