Closed Jerska closed 5 years ago
Hello @Jerska! First of all, sorry for replying to this almost 2 years late 😬
Also, zendesk api client is built on top of Faraday, which means is very easy to use extra middleware, like the one you suggested here: https://github.com/lostisland/faraday_middleware
# define your zendesk client
client = ZendeskAPI::Client.new { |client| ... }
# add faray middlewares
client.connection.builder.use FaradayMiddleware::FollowRedirects
I think this might be a better option instead of adding more code to our library.
I am close this for now, but do not hesitate to open it again if you have more questions
I'm using https://github.com/zendesk/zendesk_api_client_rb/issues/175 to access help center API endpoints. Following redirects seems to be needed in some cases for the help center.
Will probably not interest you, but just in case you want to move forward on the help center resources (which would be cool, just know that this is needed).
Logging http requests using the
httplog
gem, we used to get:Using this patch you get: