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.
I was using this SDK for MercadoShops' API and I realized that the
refreshAccessToken
method was not working. Situation: I change theMeli
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.