From 3d7111582796d309250f2ed8eee0d588132d9b5f Mon Sep 17 00:00:00 2001 From: Alex Lushpai Date: Tue, 15 Dec 2020 13:33:24 +0300 Subject: [PATCH] Update product name, cleanup annotations (#43) --- LICENSE | 2 +- README.md | 16 ++++++---------- v5/client.go | 8 ++++---- v5/client_test.go | 2 +- 4 files changed, 12 insertions(+), 16 deletions(-) diff --git a/LICENSE b/LICENSE index dce51a1..c27424b 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2015-2018 RetailDriver LLC +Copyright (c) 2015-2020 RetailDriver LLC Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index ae6ba39..e73f535 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,14 @@ [![Build Status](https://github.com/retailcrm/api-client-go/workflows/ci/badge.svg)](https://github.com/retailcrm/api-client-go/actions) -[![Covarage](https://img.shields.io/codecov/c/gh/retailcrm/api-client-go/master.svg?logo=codecov)](https://codecov.io/gh/retailcrm/api-client-go) -[![GitHub release](https://img.shields.io/github/release/retailcrm/api-client-go.svg)](https://github.com/retailcrm/api-client-go/releases) +[![Covarage](https://img.shields.io/codecov/c/gh/retailcrm/api-client-go/master.svg?logo=codecov&logoColor=white)](https://codecov.io/gh/retailcrm/api-client-go) +[![GitHub release](https://img.shields.io/github/release/retailcrm/api-client-go.svg?logo=github&logoColor=white)](https://github.com/retailcrm/api-client-go/releases) +[![Go Report Card](https://goreportcard.com/badge/github.com/retailcrm/api-client-go)](https://goreportcard.com/report/github.com/retailcrm/api-client-go) [![GoLang version](https://img.shields.io/badge/go->=1.8-blue)](https://golang.org/dl/) -[![Godoc reference](https://img.shields.io/badge/godoc-reference-blue.svg)](https://godoc.org/github.com/retailcrm/api-client-go) +[![pkg.go.dev](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white)](https://pkg.go.dev/github.com/retailcrm/api-client-go) -# retailCRM API Go client +# RetailCRM API Go client -This is golang retailCRM API client. +This is golang RetailCRM API client. ## Install @@ -104,8 +105,3 @@ func main() { fmt.Println(idata.processedOffersCount) } ``` - -## Documentation - -* [English](http://www.retailcrm.pro/docs/Developers/Index) -* [Russian](http://www.retailcrm.ru/docs/Developers/Index) diff --git a/v5/client.go b/v5/client.go index 33ac384..31c096b 100644 --- a/v5/client.go +++ b/v5/client.go @@ -5083,7 +5083,7 @@ func (c *Client) Files(files FilesRequest) (FilesResponse, int, *errs.Failure) { return resp, status, nil } -// FileUpload uploads file to retailCRM +// FileUpload uploads file to RetailCRM // // For more information see https://help.retailcrm.pro/Developers/ApiVersion5#get--api-v5-files // @@ -5163,7 +5163,7 @@ func (c *Client) File(id int) (FileResponse, int, *errs.Failure) { return resp, status, nil } -// FileDelete removes file from retailCRM +// FileDelete removes file from RetailCRM // // For more information see https://help.retailcrm.pro/Developers/ApiVersion5#get--api-v5-files // @@ -5199,7 +5199,7 @@ func (c *Client) FileDelete(id int) (SuccessfulResponse, int, *errs.Failure) { return resp, status, nil } -// FileDownload downloads file from retailCRM +// FileDownload downloads file from RetailCRM // // For more information see https://help.retailcrm.pro/Developers/ApiVersion5#get--api-v5-files // @@ -5226,7 +5226,7 @@ func (c *Client) FileDownload(id int) (io.ReadCloser, int, *errs.Failure) { return closer, status, nil } -// FileEdit edits file name and relations with orders and customers in retailCRM +// FileEdit edits file name and relations with orders and customers in RetailCRM // // For more information see https://help.retailcrm.pro/Developers/ApiVersion5#get--api-v5-files // diff --git a/v5/client_test.go b/v5/client_test.go index 9b7b8be..abed43b 100644 --- a/v5/client_test.go +++ b/v5/client_test.go @@ -39,7 +39,7 @@ var ( user, _ = strconv.Atoi(os.Getenv("RETAILCRM_USER")) statuses = map[int]bool{http.StatusOK: true, http.StatusCreated: true} crmURL = os.Getenv("RETAILCRM_URL") - badURL = "https://qwertypoiu.retailcrm.ru" + badURL = "https://qwertypoiu.retailcrm.pro" statusFail = "FailTest: status < 400" successFail = "FailTest: Success == true"