I can't get the country code from the Session, apparently, if I refer to Spotify API 1.x get user session, it is simple as:
require(['$api/models','$api/library#Library'], function(models,Library) {
console.log("country=" + models.session.country);
});
It is 'undefined'
What am I doing wrong?
I use api :
"api": "1.38.0"
"views": "1.18.1"