Returns value for public
key from Ecwid Application Storage endpoint.
Ecwid.getAppPublicConfig(appId);
Ecwid.getAppPublicConfig()
receives one argument:
Name | Type | Description |
---|---|---|
appId | String | Namespace of your application (as set in the application settings). |
{
"key": "public",
"value": "12345"
}
var pageId = Ecwid.getAppPublicConfig("my-cool-app");
console.log(pageId); // '12345'
Data in public storage of your app must not exceed 64Kb
Subscribe to the Ecwid.OnAPILoaded
JS API event to ensure availability of this function.