mirror of
https://github.com/retailcrm/api-client-go.git
synced 2025-02-20 06:43:14 +03:00
Update product name, cleanup annotations (#43)
This commit is contained in:
parent
c24cb50d9e
commit
3d71115827
2
LICENSE
2
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
|
||||
|
16
README.md
16
README.md
@ -1,13 +1,14 @@
|
||||
[](https://github.com/retailcrm/api-client-go/actions)
|
||||
[](https://codecov.io/gh/retailcrm/api-client-go)
|
||||
[](https://github.com/retailcrm/api-client-go/releases)
|
||||
[](https://codecov.io/gh/retailcrm/api-client-go)
|
||||
[](https://github.com/retailcrm/api-client-go/releases)
|
||||
[](https://goreportcard.com/report/github.com/retailcrm/api-client-go)
|
||||
[](https://golang.org/dl/)
|
||||
[](https://godoc.org/github.com/retailcrm/api-client-go)
|
||||
[](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)
|
||||
|
@ -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
|
||||
//
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user