window.Ecwid.getAppPublicConfig

Returns value for public key from Ecwid Application Storage endpoint.

window.Ecwid.getAppPublicConfig(appId);

window.Ecwid.getAppPublicConfig receives one argument:

NameTypeDescription
appIdStringNamespace 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.
  • Once the config is updated, this method will respond with the new value in 5 minutes.