• 0
COMPEZ

Ayuda para crear usuario de prueba con Python SDK

Question

Hola, estoy intentado crear un usuario de pruebas con el SDK de Python y obtengo error 400. Si lo hago con curl(comentado mas abajo), funciona OK.

def nuevo_test():
    meli = Meli(client_id=configuration.get('meli.appid'), client_secret=configuration.get('meli.secret'),)
    params = {'access_token' : "mi_access_token"}
    new_user= meli.post(path="/users/test_user", params=params)
    print new_user

# curl -X POST -H "Content-Type: application/json" -d '{"site_id":"MLA"}' https://api.mercadolibre.com/users/test_user?access_token="mi_access_token"

Alguna ayuda ?
Gracias y Saludos

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

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