https://github.com/shfc/umeng-openapi-sdk
Umeng OpenAPI SDK for Go
https://github.com/shfc/umeng-openapi-sdk
api go openapi sdk umeng
Last synced: 11 days ago
JSON representation
Umeng OpenAPI SDK for Go
- Host: GitHub
- URL: https://github.com/shfc/umeng-openapi-sdk
- Owner: shfc
- License: mit
- Created: 2020-07-03T20:01:42.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-10-09T08:41:52.000Z (over 3 years ago)
- Last Synced: 2024-06-20T03:36:50.353Z (over 1 year ago)
- Topics: api, go, openapi, sdk, umeng
- Language: Go
- Homepage:
- Size: 16.6 KB
- Stars: 6
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# umeng-openapi-sdk
`umeng-openapi-sdk` 是友盟+ Open API的golang版本
## 功能实现
- [x] U-App-移动统计
- [ ] AppTrack-移动广告监测
- [ ] U-MiniProgram-小程序统计
- [ ] U-APM-应用性能监控
## 如何使用
```go
var (
apiKey = "your api key"
apiSecurity = "your api security"
appKey = "your app key"
)
func main() {
uAppCli := uapp.NewUAppClient(apiKey, apiSecurity)
// 获取当前用户所有App昨日和今日的基础统计数据
allAppDataResp, err := uAppCli.GetAllAppData()
if err != nil {
fmt.Println(err)
return
}
fmt.Printf("%+v\n",allAppDataResp)
// 获取新增账号
newAccountsResp, err := uAppCli.GetNewAccounts(appKey, "2020-05-01", "2020-05-11", "daily", "")
if err != nil {
fmt.Println(err)
return
}
fmt.Printf("%+v\n",newAccountsResp)
}
```