Timeline for Call external API magento 2
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 27, 2020 at 13:16 | comment | added | Craig | @coinhndp Simple example here docs.guzzlephp.org/en/stable Do take a look at the promise/multiple request functionality, It could have really helped me in the past but I didn't have time but could be a real help possibly. | |
Jul 27, 2020 at 13:13 | comment | added | coinhndp | Great! I will go for Guzzle. Do you have any example of Guzzle code on github? | |
Jul 27, 2020 at 13:11 | comment | added | Craig |
@coinhndp ClientInterface is the Magento provided client wrapper and is currently implemented using curl, curl is the library used to make the raw request which a lot of other libraries "wrap" to simplify the process, ZendClient and Guzzle are some other wrappers. Guzzle is probably the most popular and has the ability to do multiple connections simultaneously as well as promise-based requests.
|
|
Jul 27, 2020 at 12:58 | comment | added | coinhndp | What's difference between ClientInterface, ZendClient, Guzzle, Curl. Which one is the most used? | |
Jul 27, 2020 at 12:53 | history | answered | Craig | CC BY-SA 4.0 |