Returns value for public key from Ecwid Application Storage endpoint.
window.Ecwid.getAppPublicConfig(appId);
window.Ecwid.getAppPublicConfig
receives one argument:
Name | Type | Description |
---|---|---|
appId | String | Namespace of your application (as set in the application settings). |
Code example:
var config = window.Ecwid.getAppPublicConfig(‘my_app_id’);
console.log(config);
{
"key": "public",
"value": "12345"
}
Data in public storage of your app must not exceed 64Kb