• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Coggle/coggle-issue-importer: API example program for Coggle: import issues from ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

Coggle/coggle-issue-importer

开源软件地址:

https://github.com/Coggle/coggle-issue-importer

开源编程语言:

JavaScript 71.3%

开源软件介绍:

Coggle Issue Importer

What is it?

Coggle issue importer is a node.js demo application for the Coggle API that imports all the issues from a selected GitHub repository into a Coggle, grouped by their tags.

The user is authenticated for both the Coggle API and the Github API using OAuth. The passport-coggle-oauth2 module used to authorize users with Coggle, and retrieve an access token that can be sent along with requests to prove that your application is allowed to access a user's Coggles.

Try It Here!

Get the Code!

First install node.js, then:

git clone [email protected]:Coggle/coggle-issue-importer.git
cd coggle-issue-importer
npm install

Running Coggle Issue Importer

To use the Coggle API you need a Client ID, and a Client Secret – which Coggle uses to identify requests to the applications that made them.

A new Client ID and Client Secret can be created at http://coggle.it/developer. The redirect URL should be the domain (and optionally port) where you will host the application (for example, localhost or localhost:5000 for testing) followed by /auth/coggle/callback, which is the Coggle oauth authentication callback route of the app.

Since the app also uses the GitHub API, you also need a github API client ID and client secret (get one here). The callback URL for github authorization is (as you'd expect) the domain followed by /auth/github/callback.

Both these pairs of IDs and secrets then need to be provided as environment variables when you run the app. If they are missing the app will refuse to start – but if they are incorrect you will only find out when you try to use it!

COGGLE_CLIENT_ID=aaaaaaaaaaaaaaaaaaaaaaaa \
COGGLE_CLIENT_SECRET=bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb \
GITHUB_CLIENT_ID=cccccccccccccccccccc \
GITHUB_CLIENT_SECRET=dddddddddddddddddddddddddddddddddddddddd \
node app.js

License

The MIT License




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
xuwei-k/ghscala: purely functional scala github api client发布时间:2022-06-13
下一篇:
blink22/android-github-api-sample发布时间:2022-06-13
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap