The Admin.getInfo method returns the API versions that can be used with Admin.apiVersion and the locale currently used by the user in the back office:
Admin.getInfo(function(info) {
// done
});
null.The returned info object has the following format:
{
siteURL : 'https://www.store.com/', // site URL
contentURL : 'https://www.store.com/', // content URL
adminURL : 'https://myshop.open2b.com/admin/', // back office URL
api : {
minVersion : 3, // minimum API version
maxVersion : 7 // maximum API version (used by Admin.api)
},
version : '7.1.23', // Open2b version (returned only starting from 7.1.0)
locale : 'it-IT' // locale used by the user in the back office
}