Why the usage of Net::HTTP::Get.new instead of Faraday.get to download files? #66
Closed
JuanKman94
started this conversation in
General
Replies: 1 comment
-
|
Hola, Sorry, I just saw this post. If you haven't found a solution, like. I'm using the library in prod, and I haven't had any issues with Net/Faraday. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a specific reason why you used
Net::HTTP::Get.newinruby_whatsapp_sdk/lib/whatsapp_sdk/api/client.rb
Line 43 in abd53ef
Faraday#get?I ask because I was writing my own client to WApp API (before finding your repo) and I've been stuck for a couple of days trying to figure out why I can't download media from facebook's download media API.
So far I've been struggling to get the following to work:
But if I use your code it works like a charm 🤔 I'm not sure if Faraday is not clearing an internal state or something
Beta Was this translation helpful? Give feedback.
All reactions