From 8d7f1d374f5ec31c6402574179c28f38ea224ccf Mon Sep 17 00:00:00 2001 From: Alex Lushpai Date: Thu, 30 Aug 2018 16:02:40 +0300 Subject: [PATCH 1/2] update integration module edit response --- v5/response.go | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/v5/response.go b/v5/response.go index cc5764d..50cec63 100644 --- a/v5/response.go +++ b/v5/response.go @@ -325,8 +325,18 @@ type IntegrationModuleResponse struct { // IntegrationModuleEditResponse type type IntegrationModuleEditResponse struct { - Success bool `json:"success"` - Info map[string]string `json:"info,omitempty,brackets"` + Success bool `json:"success"` + Info ResponseInfo `json:"info,omitempty,brackets"` +} + +type ResponseInfo struct { + MgTransportInfo MgInfo `json:"mgTransport,omitempty,brackets"` + MgBotInfo MgInfo `json:"mgBot,omitempty,brackets"` +} + +type MgInfo struct { + EndpointUrl string `json:"endpointUrl"` + Token string `json:"token"` } // CostsResponse type From 8ed199f43b7383445e7a18e2b20a65e0773d4757 Mon Sep 17 00:00:00 2001 From: Alex Lushpai Date: Thu, 30 Aug 2018 16:38:42 +0300 Subject: [PATCH 2/2] update references into README --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9d95ac4..24ddb42 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ -[![Build Status](https://img.shields.io/travis/retailcrm/api-client-go/master.svg?style=flat-square)](https://travis-ci.org/retailcrm/api-client-go) +[![Build Status](https://img.shields.io/travis/retailcrm/api-client-go/master.svg?logo=travis&style=flat-square)](https://travis-ci.org/retailcrm/api-client-go) [![GitHub release](https://img.shields.io/github/release/retailcrm/api-client-go.svg?style=flat-square)](https://github.com/retailcrm/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-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/api-client-go) # retailCRM API Go client @@ -107,4 +108,3 @@ func main() { * [English](http://www.retailcrm.pro/docs/Developers/Index) * [Russian](http://www.retailcrm.ru/docs/Developers/Index) -* [GoDoc](https://godoc.org/github.com/retailcrm/api-client-go)