Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dev-openapi/douyin-webapp
一个用protobuf生成的抖音移动/网站应用开放接口
https://github.com/dev-openapi/douyin-webapp
douyin douyin-api openapi protobuf
Last synced: about 12 hours ago
JSON representation
一个用protobuf生成的抖音移动/网站应用开放接口
- Host: GitHub
- URL: https://github.com/dev-openapi/douyin-webapp
- Owner: dev-openapi
- Created: 2023-03-12T03:59:31.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-07-12T06:11:18.000Z (over 1 year ago)
- Last Synced: 2024-06-21T19:24:26.886Z (5 months ago)
- Topics: douyin, douyin-api, openapi, protobuf
- Language: Go
- Homepage: https://developer.open-douyin.com/docs/resource/zh-CN/dop/develop/openapi/list
- Size: 25.4 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# douyin-webapp
微信小程序接口,使用protobuf生成的。
生成工具是[protoc-gen-go_api](https://github.com/dev-openapi/protoc-gen-go_api)
## 如何使用
在自己的项目中添加此包 github.com/dev-openapi/douyin-webapp
初始化包 `dyLoginService := webapp.NewLoginService()`
然后根据自己的需要,用`dyLoginService`去调用想用的接口
## 如何添加新接口
首先要安装protoc,protoc-gen-go和protoc-gen-go_api。前面两个如何安装,请参考网上教程搜索
```shell
go install github.com/dev-openapi/protoc-gen-go_api@latest
```下载[protocol](https://github.com/dev-openapi/protocol)仓库
下载本项目,与protocol是同一级目录
然后根据文档在protocol项目中写好proto文件,再执行make douyin-webapp会自动生成到本项目目录,最后提交两个项目即可