360 Secure SkillHub
360 安全技能中心

SocialKit Pinterest Post

该 Skill 用于在指定看板创建 Pinterest Pin(图片、轮播或视频):完成 OAuth 登录、生成并校验 post.json,展示内容并等待用户在终端批准,随后通过官方 Pinterest API v5 发布并报告结果。依赖 socialkit-social-core 生成与审批发布文件夹。

分类:营销
ahmadhussain0335
ahmadhussain0335
热度 36.31
最近更新 2026-11-06 15:00:39

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add ahmadhussain0335/socialkit-pinterest-post
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
socialkit-pinterest-post
description
Creates a Pinterest Pin (image, carousel or video) on a chosen board through the official Pinterest API v5 after the user approves it. Use when the user wants to pin or post on Pinterest.
license
MIT
metadata
{"author":"Ahmad Hussain","platform":"pinterest","requires":"socialkit-social-core"}

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

  1. Sign in once: node scripts/auth.mjs --platform pinterest --start, give the user the signInUrl, then node scripts/auth.mjs --platform pinterest --finish --url "<URL they landed on>".
  2. 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>
  3. Write post.json (text, media with alt text, options). See node scripts/publish.mjs --help.
  4. Validate: node scripts/publish.mjs --check --dir pin-<slug>
  5. Stop. Show the post. Ask the user to approve in their own terminal: node <socialkit-social-core>/scripts/post.mjs --approve --dir pin-<slug>
  6. Publish: node scripts/publish.mjs --publish --dir pin-<slug> and report the result.

Failure handling

  • PINTEREST_403 PINNER_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-repost only if the user asks.