{
    "componentChunkName": "component---src-templates-doc-page-js",
    "path": "/docs/en/JS_API/variables/injector/",
    "result": {"data":{"site":{"siteMetadata":{"title":"Gatsby-doc-engine"}},"markdownRemark":{"id":"40d1e457-f2cc-56fb-8769-04f1f4a9329a","excerpt":"Data structure that contains a list of properties specified during deployment or upload of a script. Certain parameters are available in chatbot scripts through…","html":"<h1><code class=\"language-text\">$injector</code></h1>\n<hr>\n<p>Data structure that contains a list of properties specified during deployment or upload of a script. Certain parameters are available in chatbot scripts through the <code class=\"language-text\">$injector</code> variable.</p>\n<p>The structure is being filled with the data from a few sources and new data is being written over the previous ones.</p>\n<p>Sequence of filling in:</p>\n<ul>\n<li>Platform properties that are set during server building. Contain server version in the <code class=\"language-text\">server.version</code> parameter.</li>\n<li>Host properties that are set during server deployment/startup.</li>\n<li>Script properties that are set in the <code class=\"language-text\">injector</code> section of a <code class=\"language-text\">chatbot.yaml</code> by default. Later these properties can be reset by the properties that are set during script deployment.</li>\n<li>Properties that are set during script deployment.</li>\n<li>Properties that are set under the <code class=\"language-text\">require</code> tag during script upload. Determine configuration parameters for the required modules.</li>\n</ul>\n</br>\n<h4>How to use</h4>\n<div class=\"gatsby-highlight\" data-language=\"yaml\"><pre class=\"language-yaml\"><code class=\"language-yaml\"><span class=\"token key atrule\">name</span><span class=\"token punctuation\">:</span> weather<span class=\"token punctuation\">-</span>api\n\n<span class=\"token key atrule\">entryPoint</span><span class=\"token punctuation\">:</span>\n  <span class=\"token punctuation\">-</span> main.sc\n\n<span class=\"token key atrule\">injector</span><span class=\"token punctuation\">:</span>\n  <span class=\"token key atrule\">api_key</span><span class=\"token punctuation\">:</span> <span class=\"token string\">'APPID'</span></code></pre></div>\n<div class=\"gatsby-highlight\" data-language=\"text\"><pre class=\"language-text\"><code class=\"language-text\">//Receiving of an API key from the chatbot.yaml\nvar OPENWEATHERMAP_API_KEY = $injector.api_key;</code></pre></div>","frontmatter":{"title":"","description":null},"headings":[{"value":"<code class=\"language-text\">$injector</code>"}]}},"pageContext":{"slug":"/docs/en/JS_API/variables/injector/","previous":{"fields":{"slug":"/docs/en/JS_API/variables/request/"},"frontmatter":{"title":"","description":null}},"next":{"fields":{"slug":"/docs/en/JS_API/variables/context/"},"frontmatter":{"title":"","description":null}}}},
    "staticQueryHashes": ["1209419333"]}