github - 我可以使用 GitHub API 提交视频吗?
问题描述
我需要使用 GitHub API 上传视频 (.mp4)。我找到了一种上传文本文件的方法。像这样的东西:
发布 /repos/:user/:repo/git/trees
{
"base_tree": "{{sha-base-tree}}",
"tree": [
{
"path": "NewFile1.txt",
"mode": "100644",
"type": "blob",
"content": "This is NewFile1."
}
]
}
在“内容”部分需要粘贴文本文件的文本。但是如果我有一个 .mp4 文件呢?如何上传?我在谷歌上找不到任何关于它的信息。谢谢。
解决方案
推荐阅读
- email - Norifications:: 不传递特定数据但使用数组
- jenkins - 运行通过 WAR 文件创建的 Jenkins 服务时更改端口
- mysql - 使用数据时间过滤mysql数据库中的数据(今天,7天,1个月和1年)
- php - 如何撤消或停止 php artisan schedule:run
- core-location - 未从 Siri Intents 调用 CLLocationManager 委托
- linux - Makefile 生成文件的数字列表
- sqlitestudio - SQLite Studio 无法加载数据库 - 红色感叹号
- javascript - 如何通过 php 将正则表达式变量保存为 .json 文件?
- ios - Is it possible to ship an IOS app with different data on each app?
- java - 使用 twillo 应用程序使用 java 发送短信时出错