Pinterest post
Apply socialkit-social-core. Official API only. Setup: setup.
Rules
- Every Pin needs options.boardId; list boards with
node scripts/auth.mjs --platform pinterest --boards. - Trial-access apps create Pins visible only to the user until Standard access is granted.
- Add alt text to every image.
Steps
- Sign in once:
node scripts/auth.mjs --platform pinterest --start, give the user thesignInUrl, thennode scripts/auth.mjs --platform pinterest --finish --url "<URL they landed on>". - Create the post folder with the socialkit-social-core post script:
node <socialkit-social-core>/scripts/post.mjs --init --dir pin-<slug> --platform pinterest --kind <image|carousel|video> - Write
post.json(text, media with alt text, options). Seenode scripts/publish.mjs --help. - Validate:
node scripts/publish.mjs --check --dir pin-<slug> - Stop. Show the post. Ask the user to approve in their own terminal:
node <socialkit-social-core>/scripts/post.mjs --approve --dir pin-<slug> - Publish:
node scripts/publish.mjs --publish --dir pin-<slug>and report the result.
Failure handling
PINTEREST_403PINNER_DATA_ACCESS_DENIED: use a Pinterest business account.PINTEREST_401: sign in again.APPROVAL_REQUIRED: the post changed after approval; ask again.ALREADY_PUBLISHED: this folder was posted; use--allow-repostonly if the user asks.
