We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Get Data from a ApiWeb (api.mercadolibre.com)

I would like to know how to get data from the API in a Web page using some method of Phalcon, providing the url field and I want to get. On the one hand you can make with request(), but as I offer the url or the field so that they return the data I am applying



1.2k

this can done with Phalcon?



1.2k

thanks, I served a lot.

Why don't create your own client (with cURL), class or controller for that purpose? I did that for a specific API implementation just recently. Also tested both Guzzle and Phalcon incubator HTTP clients, but it was just too much overhead for a simple REST API implementation. KISS principle :)