@api-emulator/pinterest
v0.2.2
Published
Pinterest REST API v5 provides user account, board, and pin creation/listing workflows.
Readme
@api-emulator/pinterest
Pinterest REST API v5 provides user account, board, and pin creation/listing workflows.
Use this emulator for local tests, CI, and offline agent runs. It keeps your tests separate from the production API.
Start the emulator
- Install the package.
npm install @api-emulator/pinterest- From this registry, start the emulator.
npx -p api-emulator api --plugin ./providers/@pinterest/api-emulator.mjs --service pinterestThe emulator uses the local URL that api-emulator prints. Set your client base URL to this local URL.
Supported API
GET /v5/user_accountGET /v5/boardsPOST /v5/boardsGET /v5/boards/:idPATCH /v5/boards/:idDELETE /v5/boards/:idGET /v5/boards/:id/pinsGET /v5/pinsPOST /v5/pinsGET /v5/pins/:idPATCH /v5/pins/:idDELETE /v5/pins/:idGET /v5/ad_accountsGET /v5/catalogsGET /pinterest/inspect/state
Coverage
- Level:
smoke-only - Meaning: A smoke test starts the emulator and checks its main behavior.
- Evidence: a direct smoke test exists, but a conformance manifest does not exist.
Credentials
You do not need production credentials. Use fixed local credentials if your client requires them.
Test data
Add repeatable test data to the provider configuration.
pinterest:
# Add provider-specific seed state here.