From 535063d83d18d2a9f9fbef28d9cc17ff2caee8f7 Mon Sep 17 00:00:00 2001 From: Alex Lushpai Date: Tue, 27 Feb 2018 15:22:52 +0300 Subject: [PATCH] godoc ApiCredentials --- v5/client.go | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/v5/client.go b/v5/client.go index 5b2f922..6fbb77b 100644 --- a/v5/client.go +++ b/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