mercadolibre / java-sdk

MercadoLibre's Java SDK
46 stars 65 forks source link

refreshAccessToken method with MercadoShops #16

Open Hernandn opened 8 years ago

Hernandn commented 8 years ago

I was using this SDK for MercadoShops' API and I realized that the refreshAccessToken method was not working. Situation: I change the Meli field "apiUrl" to "https://api.mercadoshops.com", but when it tries to refresh the token, it gets redirected for some reason. Solution: To solve this problem, I used a backup local variable to save the URL of the API I was using, and after refreshing is done, I restore it so I can continue working.