From 0cb83a57bba246a0e45c7894d1063df8eb04ce33 Mon Sep 17 00:00:00 2001 From: Maria Tyschitskaya Date: Fri, 1 Apr 2022 14:04:36 +0300 Subject: [PATCH] example fix --- client.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/client.go b/client.go index 451cd42..1e92466 100644 --- a/client.go +++ b/client.go @@ -2156,11 +2156,8 @@ func (c *Client) IntegrationModuleEdit(integrationModule IntegrationModule) ( // // var client = retailcrm.New("https://demo.url", "09jIJ") // -// requires := "MS" -// code := "moysklad3" -// -// data, status, err := client.IntegrationModuleEdit(retailcrm.UpdateScopesRequest{ -// Requires: retailcrm.ScopesRequired{Scopes: ["scope1", "scope2]}, +// data, status, err := client.UpdateScopes("moysklad3", retailcrm.UpdateScopesRequest{ +// Requires: retailcrm.ScopesRequired{Scopes: []string{"scope1", "scope2"}}}, // }) // // if err.Error() != "" {