mirror of
https://github.com/retailcrm/api-client-go.git
synced 2024-11-21 20:36:03 +03:00
godoc ApiCredentials
This commit is contained in:
parent
036832b6af
commit
535063d83d
20
v5/client.go
20
v5/client.go
@ -172,7 +172,25 @@ func (c *Client) ApiVersions() (*VersionResponse, int, ErrorResponse) {
|
||||
return &resp, status, err
|
||||
}
|
||||
|
||||
// ApiCredentials get available API methods
|
||||
// ApiCredentials get all available API methods for exact account
|
||||
//
|
||||
// Example:
|
||||
//
|
||||
// var client = v5.New("https://demo.url", "09jIJ")
|
||||
//
|
||||
// data, status, err := client.ApiCredentials()
|
||||
//
|
||||
// if err.ErrorMsg != "" {
|
||||
// fmt.Printf("%v", err.ErrorMsg)
|
||||
// }
|
||||
//
|
||||
// if status >= http.StatusBadRequest {
|
||||
// fmt.Printf("%v", err.ErrorMsg)
|
||||
// }
|
||||
//
|
||||
// for _, value := range data.credentials {
|
||||
// fmt.Printf("%v\n", value)
|
||||
// }
|
||||
func (c *Client) ApiCredentials() (*CredentialResponse, int, ErrorResponse) {
|
||||
var resp CredentialResponse
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user