我正在使用https://github.com/mattn/gist-vim并将其作为包含vim病毒的子模块安装在我的bundle目录中.
我也定了
git config --global github.user calvinchengx
git config --global github.token [mysecrettoken]
Run Code Online (Sandbox Code Playgroud)
我能够获得诸如Gist -l工作正常的命令,使用此命令检索属于我的要点列表.我也可以毫无问题地预览其他编码人员的要点Gist -l [thegithubusername].
但我无法向github发布新的要点.在尝试发布新要点时,我收到以下错误:
Posting it to gist...
Post failed:
Press ENTER or type command to continue
Run Code Online (Sandbox Code Playgroud)
没有显示任何有用的错误消息.所以我不是问题所在.有没有办法找出我的错误是什么(不熟悉调试vim脚本)?
感谢任何建议!
拉动最新的gist-vim之后我再次尝试设置,但这是我得到的错误: -

看来 Github 已经弃用了 API v2,其中 gist 创建是通过发布到 gist.github.com 来完成的,现在在 v3 中必须通过 api.github.com 来完成,可能还有其他一些差异。
API 文档: http: //developer.github.com/v3/#authentication
类似问题: https: //github.com/defunkt/gist/issues/79
| 归档时间: |
|
| 查看次数: |
905 次 |
| 最近记录: |