Merge pull request #3 from gwinn/master

update channels request struct
This commit is contained in:
Alex Lushpai 2018-08-30 14:01:29 +03:00 committed by GitHub
commit c8fbd8cd7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 11 deletions

View File

@ -1,5 +1,6 @@
language: go language: go
go: go:
- '1.8'
- '1.9' - '1.9'
- '1.10' - '1.10'
- '1.11' - '1.11'

View File

@ -1,6 +1,7 @@
[![Build Status](https://img.shields.io/travis/retailcrm/mg-bot-api-client-go/master.svg?style=flat-square)](https://travis-ci.org/retailcrm/mg-bot-api-client-go) [![Build Status](https://img.shields.io/travis/retailcrm/mg-bot-api-client-go/master.svg?logo=travis&style=flat-square)](https://travis-ci.org/retailcrm/mg-bot-api-client-go)
[![GitHub release](https://img.shields.io/github/release/retailcrm/mg-bot-api-client-go.svg?style=flat-square)](https://github.com/retailcrm/mg-bot-api-client-go/releases) [![GitHub release](https://img.shields.io/github/release/retailcrm/mg-bot-api-client-go.svg?style=flat-square)](https://github.com/retailcrm/mg-bot-api-client-go/releases)
[![GoLang version](https://img.shields.io/badge/GoLang-1.9%2C%201.10%2C%201.11-blue.svg?style=flat-square)](https://golang.org/dl/) [![GoLang version](https://img.shields.io/badge/go-1.8%2C%201.9%2C%201.10%2C%201.11-blue.svg?style=flat-square)](https://golang.org/dl/)
[![Godoc reference](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](https://godoc.org/github.com/retailcrm/mg-bot-api-client-go)
# retailCRM Message Gateway Bot API Go client # retailCRM Message Gateway Bot API Go client
@ -39,7 +40,3 @@ func main() {
fmt.Printf("%v", data.MessageID) fmt.Printf("%v", data.MessageID)
} }
``` ```
## Documentation
* [GoDoc](https://godoc.org/github.com/retailcrm/mg-bot-api-client-go)

View File

@ -46,11 +46,11 @@ type (
} }
ChannelsRequest struct { ChannelsRequest struct {
ID uint64 `url:"id,omitempty"` ID uint64 `url:"id,omitempty"`
Types string `url:"types,omitempty"` Types []string `url:"types,omitempty"`
Active uint8 `url:"active,omitempty"` Active uint8 `url:"active,omitempty"`
Since string `url:"since,omitempty"` Since string `url:"since,omitempty"`
Until string `url:"until,omitempty"` Until string `url:"until,omitempty"`
} }
UsersRequest struct { UsersRequest struct {