mastodon-api:Mastodon API客户端库

时间:2021-02-03 01:22:58
【文件属性】:
文件名称:mastodon-api:Mastodon API客户端库
文件大小:90KB
文件格式:ZIP
更新时间:2021-02-03 01:22:58
streaming authorization node-module mastodon nodejs-modules Mastodon API API客户端节点 正在安装 yarn add mastodon-api 要么 npm install --save mastodon-api 用法: 授权书 要获取访问令牌,请查看 。 有关更多信息,请在和Wiki上。 授权过程如下: 点击/apps端点以创建OAuth应用程序 使用收到的client_id和client_secret获取授权URL 通过使用从授权页面获得的授权代码点击/oauth/token端点来获取访问令牌 Mastodon.createOAuthApp(url, clientName, scopes, redirectUri) 调用/app端点以创建OAuth应用。 返回应用程序id , client_id和client_secret 。 从现在开始,应该存储和使用这些值。 理想情况下,只需调用一次! 网址 可选的。 Mastodon实例的基本URL。 默认为https://mastodon.social/api/v1/apps 客户名称 可选的。 默认为mastodon-node 范围 可选的。 定义您的OAut
【文件预览】:
mastodon-api-master
----.gitignore(29B)
----.babelrc(47B)
----.eslintrc(322B)
----package.json(1KB)
----src()
--------settings.js(391B)
--------helpers.js(2KB)
--------parser.js(2KB)
--------streaming-api-connection.js(8KB)
--------mastodon.js(14KB)
----.travis.yml(117B)
----gulpfile.js(716B)
----LICENSE(1KB)
----examples()
--------authorization.js(1KB)
--------streaming.js(311B)
--------home_timeline.js(160B)
----README.md(7KB)
----.npmignore(38B)
----yarn.lock(196KB)

网友评论