EN IT
Open2b version 7.8

Admin.getInfo

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
});
Open2b versions prior to 2016 always return 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
}