Skip to content
This repository has been archived by the owner on Feb 10, 2022. It is now read-only.

problem getting test user [Invalid SiteId], can some one help me? #105

Open
WellingtonNico opened this issue Mar 9, 2021 · 1 comment
Open

Comments

@WellingtonNico
Copy link

im just getting this response:
{'message': 'Invalid siteId', 'error': 'bad_request', 'status': 400, 'cause': []}

i used 'MLB' id, also tryied with 'MLC'.

data = {
'site_id':'MLB'
}

@francosabolo
Copy link

Hi @WellingtonNico
I think site ids goes like these
MLA: Argentina.
MLB: Brasil.
MLC: Chile.
MLU: Uruguay.
MCO: Colombia.
MLV: Venezuela.
MPE: Perú.
MLM: México.

Be sure to set the correct host server if you are using Brasil's

// 1: "https://auth.mercadolibre.com.ar"
// 2: "https://auth.mercadolivre.com.br"
// 3: "https://auth.mercadolibre.com.co"
// 4: "https://auth.mercadolibre.com.mx"
// 5: "https://auth.mercadolibre.com.uy"
// 6: "https://auth.mercadolibre.cl"
// 7: "https://auth.mercadolibre.com.cr"
// 8: "https://auth.mercadolibre.com.ec"
// 9: "https://auth.mercadolibre.com.ve"
// 10: "https://auth.mercadolibre.com.pa"
// 11: "https://auth.mercadolibre.com.pe"
// 12: "https://auth.mercadolibre.com.do"
// 13: "https://auth.mercadolibre.com.bo"
// 14: "https://auth.mercadolibre.com.py"

// Use the correct auth URL
$config->setHost($servers[2]["url"]);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants