mercadolibre / php-sdk

MercadoLibre's PHP SDK
185 stars 266 forks source link

Validation for optional value. #78

Open pmercadocl opened 4 years ago

pmercadocl commented 4 years ago

As described in documentation https://developers.mercadolibre.com.ar/es_ar/autenticacion-y-autorizacion#Refresh-token , application must have selected option "offline_access" to return a value, so this commit check if variable exist and is not empty. Meli library fail if application in Mercado Libre backend does not have set "offline_access" option.

This should fix #69