How can I hide api key in bixby-studio?

Seo*_*ark 3 bixby

How can I hide api key in bixby-studio?

I want to make bixby capsule Using API data. but I can't find how to hide API key

this is example code at code/requestmovie.js

module.exports.function = function requestmovie () {

  const http = require('http');
  const console = require("console")

  // here !!
  let url = 'url with api key'

  let response = http.getUrl(url, {format: 'xmljs'})
  let MovieList = {}
  let lists = response.movieList

  MovieList.firstmovietitle = lists[0].movieNm

  return MovieList
}
Run Code Online (Sandbox Code Playgroud)

I want to hide my API key

Pet*_*aas 6

Bixby provides the ability to save secrets and safely access them from your code.

https://bixbydevelopers.com/dev/docs/reference/JavaScriptAPI/secret

  1. Define the secret you want to define at https://bixbydevelopers.com/
  2. Access it with secret.get([your secret name])

bixby开发人员网站

  • 使用配置系统可以使您的API密钥保持安全。另一个好处是,即使将胶囊发布到市场上,您也可以更新密钥。 (2认同)
  • 从Jatin复制:这是有关使用Capsule Configuration和开发人员中心的Config&Secrets功能的更多信息:https://bixbydevelopers.com/dev/docs/reference/ref-topics/capsule-config (2认同)