• 0
MARCELO WATCH

API json php Lista de produtos Mercado livre Brasil

Question

Bom dia, estou com um problema ao obter dados em json do mercadolivre api, sempre usei o mesmo comando, mas parou de funcionar:

$json_file = file_get_contents("https://api.mercadolibre.com/sites/MLA/search?nickname=TETE2870021");

De uma hora pra outra, no site começou a aparece o seguinte erro:

 Warning: file_get_contents(https://api.mercadolibre.com/sites/MLB/search?nickname=MARCELO%20WATCH#json): failed to open stream: Connection timed out in /storage/ssd2/555/13581555/public_html/index.php on line 2

Só funciona localmente, pelo que parece, agora precisar liberar o acesso ao meu domínio, mas não sei fazer isso, e não gosto de usar o SDK do ML, queria algo simples como era antes com esta api da json, só pra obter dados de produtos msm.

 

TRADUÇÃO:

Good morning, I have a problem getting data in json from mercadolivre api, I always used the same command, but it stopped working:

$ json_file = file_get_contents ("https://api.mercadolibre.com/sites/MLA/search?nickname=TETE2870021");

All of a sudden, the following error started to appear on the website:

Warning: file_get_contents (https://api.mercadolibre.com/sites/MLB/search?nickname=MARCELO%20WATCH#json): failed to open stream: Connection timed out in / storage / ssd2 / 555/13581555 / public_html / index .php on line 2

It only works locally, it seems to need release in the domain, but I don't know how to do that, and I don't like using the ML SDK, I wanted something simple as it was before with this json api, just to get product data only.

 

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now