diff --git a/v5/client.go b/v5/client.go index f5b8ed3..3c23bd4 100644 --- a/v5/client.go +++ b/v5/client.go @@ -141,18 +141,23 @@ func fillSite(p *url.Values, site []string) { } // ApiVersions get all available API versions for exact account +// // Example: -// var client = v5.New("https://demo.retailcrm.pro", "09jIJ09j0JKhgyfvyuUIKhiugF") +// +// var client = v5.New("https://demo.url", "09jIJ") +// // data, status, err := client.ApiVersions() +// // if err.ErrorMsg != "" { -// fmt.Printf("%v", err.ErrorMsg) +// fmt.Printf("%v", err.ErrorMsg) // } +// // if status >= http.StatusBadRequest { -// fmt.Printf("%v", err.ErrorMsg) +// fmt.Printf("%v", err.ErrorMsg) // } // // for _, value := range data.versions { -// fmt.Printf("%v\n", value) +// fmt.Printf("%v\n", value) // } func (c *Client) ApiVersions() (*VersionResponse, int, ErrorResponse) { var resp VersionResponse