nana800-remote-config
v1.0.1
Published
### Detail Documentation
Maintainers
Readme
Nana800 Remote Config from NANA800.io 🍺
Detail Documentation
Installation
yarn add nana800-remote-configor
npm i nana800-remote-configUsage
For JavaScript/TypeScript projects:
import { nana800RemoteConfig } from "nana800-remote-config"
window.addEventListener('load', async () => {
const isFetched = await nana800RemoteConfig.initFetch({
platform: 'WEB',
remote_config_project_id: 'your-project-id',
api_key: 'your-api-key',
user_uniq_id: '1234',
lang_key: 'ru',
version: 1
})
console.log({isFetched})
const landingUrl = nana800RemoteConfig.getString('landing_url');
console.log({landingUrl})
})For HTML/JS projects:
<script src="https://s3.timeweb.cloud/c14a1252-bekender-files/cdn_libraries/nana800-remote-config.cjs.js"></script>
<script>
window.addEventListener('load', async () => {
const isFetched = await nana800RemoteConfig.initFetch({
platform: 'WEB',
remote_config_project_id: 'your-project-id',
api_key: 'your-api-key',
user_uniq_id: '1234',
lang_key: 'ru',
version: 1
})
console.log({isFetched})
const landingUrl = nana800RemoteConfig.getString('landing_url');
console.log({landingUrl})
})
</script>For other platforms (cURL):
curl --location 'https://api.nana800.io/remote_config_records/fetch_user_remote_config_records' \
--header 'Content-Type: application/json' \
--data '{
"api_key": "your-api-key",
"remote_config_project_id": "your-project-id",
"lang_key": "ru",
"platform": "WEB",
"version": 1
}'FAQ
Where is the API key ("api_key"):
Get your API key from: https://cloud.nana800.io/settings
Where is the "remote_config_project_id":
Get your remote config project id after creating configuration on nana800.io
Platform values:
WEB | ANDROID | IOS | DESKTOP
Contacts
No-Code & Business & Analytics Cloud Platform NANA800.io
Platform Console CLOUD.NANA800.io
Platform Documentation NANA800 Documentation
