curl --location --request POST 'https://api.github.com/repos///git/blobs' \
--header 'Content-Type: application/json' \
--data-raw '{
"content": "Content of the blob",
"encoding": "utf-8"
}'
{
"sha": "string",
"url": "string"
}
Authorization: Bearer ********************
content
. Currently, "utf-8"
and "base64"
are supported.【GitHub】API开发者 微信交流群
用微信扫右侧二维码,加入【GitHub】API开发者 交流群,互助沟通