Currently for a project I am using api_auth
gem. I am hitting on an external api in a function by making a signed request. Currently my code looks like this.
access_id = "someKey"
secret_key = "someRandomGeneratedKey"
request = RestClient::Request.new(url: 'serverUrl', method: get, headers:'headers')
@signed_request = ApiAuth.sign!(access_id, secret_key, request)
@signed_request.execute
I am unable to apply any error handling code to that last statement where I execute the request. Any suggestions?