Merge pull request #22 from gwinn/master
Add email to user struct & update TravisCI config
This commit is contained in:
commit
f6a7652f40
@ -3,6 +3,7 @@ go:
|
||||
- '1.8'
|
||||
- '1.9'
|
||||
- '1.10'
|
||||
- '1.11'
|
||||
before_install:
|
||||
- go get -v github.com/google/go-querystring/query
|
||||
- go get -v github.com/h2non/gock
|
||||
|
11
README.md
11
README.md
@ -1,6 +1,7 @@
|
||||
[![Build Status](https://img.shields.io/travis/retailcrm/mg-transport-api-client-go/master.svg?style=flat-square)](https://travis-ci.org/retailcrm/mg-transport-api-client-go)
|
||||
[![Build Status](https://img.shields.io/travis/retailcrm/mg-transport-api-client-go/master.svg?logo=travis&style=flat-square)](https://travis-ci.org/retailcrm/mg-transport-api-client-go)
|
||||
[![GitHub release](https://img.shields.io/github/release/retailcrm/mg-transport-api-client-go.svg?style=flat-square)](https://github.com/retailcrm/mg-transport-api-client-go/releases)
|
||||
[![GoLang version](https://img.shields.io/badge/GoLang-1.8%2C%201.9%2C%201.10-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-transport-api-client-go)
|
||||
|
||||
|
||||
# retailCRM Message Gateway Transport API Go client
|
||||
@ -8,7 +9,7 @@
|
||||
## Install
|
||||
|
||||
```bash
|
||||
go get -x github.com/retailcrm/mg-transport-api-client-go
|
||||
go get -u -v github.com/retailcrm/mg-transport-api-client-go
|
||||
```
|
||||
|
||||
## Usage
|
||||
@ -51,7 +52,3 @@ func main() {
|
||||
fmt.Printf("%v", data.ChannelID)
|
||||
}
|
||||
```
|
||||
|
||||
## Documentation
|
||||
|
||||
* [GoDoc](https://godoc.org/github.com/retailcrm/mg-transport-api-client-go)
|
||||
|
@ -152,6 +152,7 @@ func TestMgClient_Messages(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestMgClient_UpdateMessages(t *testing.T) {
|
||||
t.Skip()
|
||||
c := client()
|
||||
t.Logf("%v", ext)
|
||||
|
||||
@ -181,6 +182,7 @@ func TestMgClient_UpdateMessages(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestMgClient_DeleteMessage(t *testing.T) {
|
||||
t.Skip()
|
||||
c := client()
|
||||
t.Logf("%v", ext)
|
||||
|
||||
|
@ -77,6 +77,7 @@ type User struct {
|
||||
Country string `json:"country,omitempty"`
|
||||
Language string `json:"language,omitempty"`
|
||||
Phone string `json:"phone,omitempty"`
|
||||
Email string `json:"email,omitempty"`
|
||||
}
|
||||
|
||||
// Message struct
|
||||
|
Loading…
Reference in New Issue
Block a user