diff --git a/contacts.go b/contacts.go index e0c2b7c..21b8ac6 100644 --- a/contacts.go +++ b/contacts.go @@ -7,13 +7,13 @@ import "surdeus.su/core/amo/api" import "fmt" func (client *Client) GetContact( - contactId int, + contactID int, opts ...urlenc.Builder, ) (*contacts.Contact, error) { deal := new(contacts.Contact) res := fmt.Sprintf( "/api/v4/contacts/%d?%s", - contactId, + contactID, urlenc.Join(opts...).Encode(), ) @@ -58,7 +58,7 @@ func (client *Client) GetContacts( func (client *Client) UpdateContact(contact *contacts.Contact) error { return client.updateEntity( "/api/v4/contacts", - contact.Id, + contact.ID, contact, ) }