如何正确填写http请求信息以实现github content上传

使用问题 · 991 次浏览
mk 创建于 2020-05-09 21:30

## 知识背景


我看过一些http请求的例子,也看过github的api文档,并且找到过几个github上传图片的范例


## 困难


我对http请求的细节规则不了解,因此不知道怎么样把 curl 等环境下的 http请求参数写到 quicker里面


## 例子

Github官方文档介绍说:Create or update a file

Creates a new file or updates an existing file in a repository.
PUT /repos/:owner/:repo/contents/:path 

{
  "message": "my commit message",
  "committer": {
    "name": "Monalisa Octocat",
    "email": "octocat@github.com"
  },
  "content": "bXkgbmV3IGZpbGUgY29udGVudHM="
}

* 我把要上传的文件编码为变量 {img64},Token赋值到{token}

那么,应该怎样填写Quicker的HTTP请求呢?

希望大家不吝指导。

回复内容
mk 2020-05-10 00:04
#1

我已经知道了正确的写法了——只要无视quicker编辑器的颜色变化,按照标准方法写就可以了!

回复主贴