nishare-api
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "nishare-api" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-c50128fcdfd28ce8d4214afae1e5a9b2b7f9b46553b318b620458a907b4dfe06. Verify the upstream source and version against https://skillhub.cn/skills/user_4ff34572/nishare before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Used when a user needs to publish, update, or explain how to publish AI-generated HTML, images, or documents to Nishare via API. Supports providing curl examples, API-Key/Bearer authentication methods, workspace targeting, payload validation rules, or proxy prompts that return a Nishare share link (shareUrl).
Introduction source: third_party · user_4ff34572 · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Use when the user wants to publish, update, or explain how to publish AI-generated HTML, image, or document content to Nishare via its API, needs curl examples, API-Key/Bearer authentication, workspace targeting, payload validation rules, or wants an agent prompt that returns a Nishare shareUrl.
- Testing
- Not tested
Browse files
Frontmatter
name: nishare-api
description: Use when the user wants to publish, update, or explain how to publish AI-generated HTML, image, or document content to Nishare via its API, needs curl examples, API-Key/Bearer authentication, workspace targeting, payload validation rules, or wants an agent prompt that returns a Nishare shareUrl.
metadata:
short-description: Publish and update Nishare sharesNishare API
Use this skill when helping a user or another AI tool publish generated content to Nishare.
Quick Workflow
- Choose the base URL:
- Production:
https://nishare.com - Local development:
http://localhost:4173
- Production:
- Choose an endpoint:
- Create a share:
POST /api/ai/publish - Update an existing project:
POST /api/ai/update
- Create a share:
- Choose content type:
- HTML: full HTML document only
- Markdown: document text
- Image:
imageDataUrl,imageBase64, orimageUrl
- Add authentication only when publishing into an account/workspace or updating:
X-Nishare-Key: nsk_xxx, orAuthorization: Bearer nsk_xxx
- Return
shareUrlto the user on success. On failure, surfacemessageand anymatches.
Copyable Agent Prompt
Use this prompt when instructing another AI tool:
把内容发布到 Nishare:POST https://nishare.com/api/ai/publish,成功后返回 shareUrl,失败时返回 message。
For full HTML pages:
请把你生成的完整页面 HTML 通过 POST 发送到 https://nishare.com/api/ai/publish,JSON 格式为 {"title":"页面标题","type":"html","html":"完整页面 HTML"},然后把响应里的 shareUrl 返回给我。
Essential Examples
Publish HTML:
curl -s https://nishare.com/api/ai/publish \
-H 'Content-Type: application/json' \
-d '{"title":"AI 生成演示","type":"html","html":"<!doctype html><html><body><h1>Hello</h1></body></html>"}'
Publish with API Key:
curl -s https://nishare.com/api/ai/publish \
-H 'Content-Type: application/json' \
-H 'X-Nishare-Key: nsk_xxx' \
-d '{"title":"AI 生成演示","type":"html","html":"<!doctype html><html><body><h1>Hello</h1></body></html>"}'
Update a project:
curl -s https://nishare.com/api/ai/update \
-H 'Content-Type: application/json' \
-H 'X-Nishare-Key: nsk_xxx' \
-d '{"projectId":"project_id","title":"更新后的演示","type":"html","html":"<!doctype html><html><body><h1>Updated</h1></body></html>"}'
Detailed Reference
Read references/api.md when you need:
- All accepted payload fields and headers
- Markdown, image, raw HTML, or text examples
- Workspace targeting
- Response shapes
- Validation limits and common errors
Current listing version
1.0.0
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供完整的 Nishare API 发布流程,涵盖 HTML、Markdown、Image 多种内容类型
- 包含详细的认证方式说明和端到端 curl 示例,实用性强
Highlights
- 触发描述清晰完整,覆盖发布、更新、API 说明等核心场景
- 关键词精准,边界清晰,不易误触或漏触
Highlights
- 结构完整,包含工作流、提示词、示例和参考文档
- 步骤清晰,有出口条件,frontmatter 完整规范
Highlights
- API 端点、认证方式、载荷格式说明完整准确
- 覆盖主要异常情况,提供错误处理指导
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Accounts, secrets or authorization
Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.
Mentioned in main document · lines 3, 53
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- localhost
- nishare.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.