是否可以通过 API 代表用户创建主题,但该用户不会通过仪表板创建主题?
使用“所有用户”API 密钥时,您可以传入希望为其创建主题的用户名。
curl -i -sS -X POST "http://localhost:3000/posts.json" \
-H "Content-Type: multipart/form-data;" \
-H "Api-Key: 079fb2bb12d...all-users-api-key" \
-H "Api-Username: any-username" \
-F "title=9c02314d4a5 3ce4e754374 c42066df84d" \
-F "raw=7d7225b7704b973e2e352605219fce44 4328e51d07fcbe6f3d709ef54c7a0a10 78fab042da69066d242cea6c8f3b13e1"
我不太明白您所说的“不通过仪表板创建主题”是什么意思。
5 个赞
