diff --git a/lib/sharepoint/client.rb b/lib/sharepoint/client.rb index 65bf698..9319386 100644 --- a/lib/sharepoint/client.rb +++ b/lib/sharepoint/client.rb @@ -571,7 +571,6 @@ def xrequest_digest(site_path = nil) url = remove_double_slashes("#{computed_api_url(site_path)}/contextinfo") easy.http_request(url, :post, { body: '' }) easy.perform - puts easy.response_body JSON.parse(easy.response_body)['d']['GetContextWebInformation']['FormDigestValue'] end diff --git a/lib/sharepoint/client/token.rb b/lib/sharepoint/client/token.rb index 05c226b..6a0f060 100644 --- a/lib/sharepoint/client/token.rb +++ b/lib/sharepoint/client/token.rb @@ -40,8 +40,7 @@ def expired? (fetched_at + expires_in) < Time.now.utc.to_i end - def - def(_request_new_token) + def request_new_token auth_request = { client_id: config.client_id, client_secret: config.client_secret,