{"componentChunkName":"component---src-templates-tutorial-js","path":"/en/tutorial/CreateWechatWarning/","result":{"data":{"markdownRemark":{"html":"<h2 id=\"wechat-work-alarm-creation\"><a href=\"#wechat-work-alarm-creation\" aria-hidden class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>WeChat Work Alarm Creation</h2>\n<p>Users need to register and download Tencent WeChat Work first, then associate iManager with WeChat Work, so that the alarm messages from iManager can be sent to WeChat Work.</p>\n<blockquote>\n<p>Notes:<br>\nThe configuration of WeChat Work need to be configured before you first time start up iManager.</p>\n</blockquote>\n<p>Please follow the steps below to create the alarm application of WeChat Work:</p>\n<ol>\n<li>\n<p>Open the page to <a href=\"https://work.weixin.qq.com/wework_admin/register_wx?from=myhome_baidu\" target=\"_blank\">Register WeChat Work</a>, fill in the company information and administrator information.</p>\n<p>\n  <a\n    class=\"gatsby-resp-image-link\"\n    href=\"/iManager_K8S/1014/static/6a06517ce3d9ee749430826e70676bb0/fbdcb/wechatregistryen.png\"\n    style=\"display: block\"\n    target=\"_blank\"\n    rel=\"noopener\"\n  >\n  \n  <span\n    class=\"gatsby-resp-image-wrapper\"\n    style=\"position: relative; display: block;  max-width: 515px; margin-left: auto; margin-right: auto;\"\n  >\n    <span\n      class=\"gatsby-resp-image-background-image\"\n      style=\"padding-bottom: 180.47619047619045%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAkCAIAAAAGkY33AAAACXBIWXMAAA7EAAAOxAGVKw4bAAADBklEQVRIx5VV2U7jMBTtF8MfIPEfIwRC6gfwxrxUGjGjah6YB6SZPgHNvnhLbGdpusyJDaFNQoGjNq0dn+tzF19P0jQtikIbqBYawyRJXNcJo8gPfD8IAj+QUupXYFFVVb7vT7B0N0BZlpQQGJIyBw2PzWbTvd1ut3hyzicwY6cYZYEfppRiT7zYvY8heQslSrea69XKrtjHcfKOUuIsnSAMwjASQsDW0ATEr9dr68KhbM6iMCIpiaIY4FwUJjbwGEGSSuV5hlhsDA7IsFrX1cqggfGmqfaAybIq4VHTNOOysyxLk4QyXtXwelUbQ3Xd/dYvpptmZGfoQ+qQ2ySOPcfxfN/zPc9z8cU8fl3XRTjyPLf7M8Ym8MvujCnotZK2u92XUoVoUxQT5DVHAeXYoy9bF5pQUlf1cSDgVvYBefdpjOQZ0WaMwvCH5BGfUQ6ZEN3wywHD8VRSQdWwKjuMlyfFsWIEbxGVt6iZ+ljvYaRIIAXetgfdHHrVVjJgznKW7x/mcdm2kUhpuonWm/fjPyCjPE1zEYKj6yyXDrbFIlt2Ft3+I+QXkXnO4XpKMMIiUEBam1B1tTDeSaqqNB2uwL+enx/4TNIUgrkQkFDotivi+OmyxqdaNR+QBRdRGNoTa5OkizJlOREyUwW0b480QDQKpVWOKhWZNImyYS/brq4wuzniM0oDQUFU61WtlV6ZHvpZnxeLxc3Nzffb2/v7P23susIyJbmPNzKEWfLd3d35+fnp6en19TUm0YnRaNKUtDWP1FlQZhQNyLPZ7Ozs7OTk5OryEp6jfbcNWHCUbXuVmesMcTw4zx354eHh4uJiOp3O5/NeS+s53Pe5d6cMOZtD9Hd+4Rsa2lxVtsATmTLtZTsSbUu241yXIRExzdyIOl787MVumD664aMbxTRPmExoBm+siT4ZZQDmMmJuzLGasCzLFcmUl/Ag5U5EpSoPdh5e7tZfXjSX8/jbz/D3s+wm+7JxleBC5a9AbtGNMIbg6Y/F1ezfr7+OzDjFrIFdg+J9enr6D/pVHIFfma3xAAAAAElFTkSuQmCC'); background-size: cover; display: block;\"\n    >\n      <img\n        class=\"gatsby-resp-image-image\"\n        style=\"width: 100%; height: 100%; margin: 0; vertical-align: middle; position: absolute; top: 0; left: 0; box-shadow: inset 0px 0px 0px 400px white;\"\n        alt=\"wechatregister\"\n        title=\"\"\n        src=\"/iManager_K8S/1014/static/6a06517ce3d9ee749430826e70676bb0/fbdcb/wechatregistryen.png\"\n        srcset=\"/iManager_K8S/1014/static/6a06517ce3d9ee749430826e70676bb0/65ed1/wechatregistryen.png 210w,\n/iManager_K8S/1014/static/6a06517ce3d9ee749430826e70676bb0/d10fb/wechatregistryen.png 420w,\n/iManager_K8S/1014/static/6a06517ce3d9ee749430826e70676bb0/fbdcb/wechatregistryen.png 515w\"\n        sizes=\"(max-width: 515px) 100vw, 515px\"\n      />\n    </span>\n  </span>\n  \n  </a>\n    </p>\n</li>\n<li>\n<p>Login to the home page of WeChat Work after registering(Please login by web page), click on <strong>App Management > Apps > Create an app</strong>.</p>\n<p>\n  <a\n    class=\"gatsby-resp-image-link\"\n    href=\"/iManager_K8S/1014/static/09ed6c9adce853cdf6a5612360719557/23725/createapplicationen.png\"\n    style=\"display: block\"\n    target=\"_blank\"\n    rel=\"noopener\"\n  >\n  \n  <span\n    class=\"gatsby-resp-image-wrapper\"\n    style=\"position: relative; display: block;  max-width: 840px; margin-left: auto; margin-right: auto;\"\n  >\n    <span\n      class=\"gatsby-resp-image-background-image\"\n      style=\"padding-bottom: 75.71428571428572%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAPCAIAAABr+ngCAAAACXBIWXMAAA7EAAAOxAGVKw4bAAACJ0lEQVQoz31SS08UQRCev62JLyDhgAkcFBATieIB42FdDyrGhMjNYMJlEwQkvHbdZefBzPS7uqvamlnQEMQvneme6vr6+7q6kqX1z4vrXxbWPs2tfph59n5quTu70r0///rO3MvpJ2+ml7sPFzv3lt7OrHQfPO08Wn43v7axsLbxePXj7Eon+XmaHZwWeydpJQ2hJ8IY0YqiylN0KhIShkDAcQw+NrvULCJVVZnMvdqeevHt7vOvWzvH0euA5ANyCoP4mBa8bkjEAyniZH+cpklZVuPzVEkFgfZGHjyfGrWj3VEIHphS29g7M6o4N0ZnEg9T9sLxmGV5khUXVS2tBQu4N3TWupaMvYGthHDOljrsH42pGnH8QtijYdnajmmWJbWQDhAgGMDtU1LaRAoK4s6xdqMDZRDtAKtNZVFpQHUQik1p8FK5Fgo8sqwHa7Pv1urmqlDDaAuMCey7rHxvVztOQcozf7jv+OJXyi3Z8Q0dqX322ZQq6CB/GOMcl0DpcNKXWnuukxB+0IeA18gOPNvuDaN1vOR/B/2hgwZEFK9jEsny/C/ZQTjLjFKaOQQOfp1pra0xTSobbh9qMm6SA/ggtItXL/xHjpxDpUhr4q+1tyh7PCm84qSmm6jStvHMxRPCCinK2goVpfwHuSlYaLqCboK709rL4X179NVTSWW4eOAbNW1sKY0FH/+LiXKeF8k4zbjDLspaCMngSbXQt4N3nXP9/uA3UDxM+5JHUCMAAAAASUVORK5CYII='); background-size: cover; display: block;\"\n    >\n      <img\n        class=\"gatsby-resp-image-image\"\n        style=\"width: 100%; height: 100%; margin: 0; vertical-align: middle; position: absolute; top: 0; left: 0; box-shadow: inset 0px 0px 0px 400px white;\"\n        alt=\"createapplication\"\n        title=\"\"\n        src=\"/iManager_K8S/1014/static/09ed6c9adce853cdf6a5612360719557/1e088/createapplicationen.png\"\n        srcset=\"/iManager_K8S/1014/static/09ed6c9adce853cdf6a5612360719557/65ed1/createapplicationen.png 210w,\n/iManager_K8S/1014/static/09ed6c9adce853cdf6a5612360719557/d10fb/createapplicationen.png 420w,\n/iManager_K8S/1014/static/09ed6c9adce853cdf6a5612360719557/1e088/createapplicationen.png 840w,\n/iManager_K8S/1014/static/09ed6c9adce853cdf6a5612360719557/23725/createapplicationen.png 1105w\"\n        sizes=\"(max-width: 840px) 100vw, 840px\"\n      />\n    </span>\n  </span>\n  \n  </a>\n    </p>\n</li>\n<li>Fill in the required information and click on <strong>create an app</strong>.</li>\n<li>\n<p>Execute the following command in ‘supermap-imanager-for-kubernetes’ directory of the iManager installation machine(Please refer to <a href=\"../../guides/InstalliManager/\">Guides > Deployment Guide > Install iManager</a>).</p>\n<div class=\"gatsby-highlight\" data-language=\"shell\"><pre class=\"gatsby-code-shell\"><code class=\"gatsby-code-shell\"><span class=\"token function\">sudo</span> <span class=\"token function\">vi</span> .env</code></pre></div>\n</li>\n<li>\n<p>Configure the parameters of WeChat Work, the screenshot below is an example:</p>\n<p>\n  <a\n    class=\"gatsby-resp-image-link\"\n    href=\"/iManager_K8S/1014/static/30f24d0ffd59a083303e1aace3c2eb64/bf433/modifyenven.png\"\n    style=\"display: block\"\n    target=\"_blank\"\n    rel=\"noopener\"\n  >\n  \n  <span\n    class=\"gatsby-resp-image-wrapper\"\n    style=\"position: relative; display: block;  max-width: 840px; margin-left: auto; margin-right: auto;\"\n  >\n    <span\n      class=\"gatsby-resp-image-background-image\"\n      style=\"padding-bottom: 38.095238095238095%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAICAIAAAB2/0i6AAAACXBIWXMAAA7EAAAOxAGVKw4bAAABB0lEQVQY022R624EIQiF9/0fdHcuMigqipeh2P3RbVNDTtB44EMfEbaIJ7lXgI3ck9xWIzYmiSAJJXmJV7NIvoms+FgPIZDsW4Qar+r3GtyQpC1qZ21JJS6dXf9bjxqOak6zkSu4Z9yt50jQ6ewZe4KR/V1pValRR/tlZtwLOb5eHA4JR8GNCTM8EzwzHhlexR+zkN5T51j6ac7+ZLoYDxtPDdhoR/3RXpZaW9v+di5zCcARCwEHMJ2SRn1HHCWOmm+ruIpmve+/ZqGzZZRw1nAaLfs1tgEzbkZuQ032WoPa2LOtl7MY38k9DNvlAAZv37PKv4HtngFbMkR71WbnokILwfJ30vkLkajPh+IYWtAAAAAASUVORK5CYII='); background-size: cover; display: block;\"\n    >\n      <img\n        class=\"gatsby-resp-image-image\"\n        style=\"width: 100%; height: 100%; margin: 0; vertical-align: middle; position: absolute; top: 0; left: 0; box-shadow: inset 0px 0px 0px 400px white;\"\n        alt=\"modifyenv\"\n        title=\"\"\n        src=\"/iManager_K8S/1014/static/30f24d0ffd59a083303e1aace3c2eb64/1e088/modifyenven.png\"\n        srcset=\"/iManager_K8S/1014/static/30f24d0ffd59a083303e1aace3c2eb64/65ed1/modifyenven.png 210w,\n/iManager_K8S/1014/static/30f24d0ffd59a083303e1aace3c2eb64/d10fb/modifyenven.png 420w,\n/iManager_K8S/1014/static/30f24d0ffd59a083303e1aace3c2eb64/1e088/modifyenven.png 840w,\n/iManager_K8S/1014/static/30f24d0ffd59a083303e1aace3c2eb64/bf433/modifyenven.png 971w\"\n        sizes=\"(max-width: 840px) 100vw, 840px\"\n      />\n    </span>\n  </span>\n  \n  </a>\n    </p>\n<ul>\n<li>‘deploy_weixin_crop_id’ can be found in <strong>WeChat Work > My Company > Company ID</strong>.</li>\n<li>‘deploy_weixin_to_party’ can be found in <strong>WeChat Work > Contacts > Department ID</strong>.</li>\n<li>To find ‘deploy_weixin_agent_id’ and ‘deploy_weixin_api_secret’, go to <strong>WeChat Work > App Management > Self-built</strong>, click on your application, find the Agentid and Secret.</li>\n<li>Follow the steps below to find out the value of ‘deploy_weixin_token’ and ‘deploy_weixin_encoding_aes_key’</li>\n</ul>\n</li>\n</ol>\n<blockquote>\n<p>Notes:<br>\nTo obtain the WeChat Work Department ID, select <strong>Contacts</strong> and the department to be viewed in the navigation bar on the left side of the home page. Click the three-point button to get the Department ID.</p>\n</blockquote>\n<p>   \n  <a\n    class=\"gatsby-resp-image-link\"\n    href=\"/iManager_K8S/1014/static/ba4ecab3549fb2dbbb11ead41dca5afc/03f69/getpartyiden.png\"\n    style=\"display: block\"\n    target=\"_blank\"\n    rel=\"noopener\"\n  >\n  \n  <span\n    class=\"gatsby-resp-image-wrapper\"\n    style=\"position: relative; display: block;  max-width: 840px; margin-left: auto; margin-right: auto;\"\n  >\n    <span\n      class=\"gatsby-resp-image-background-image\"\n      style=\"padding-bottom: 32.38095238095238%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAGCAIAAABM9SnKAAAACXBIWXMAAAsTAAALEwEAmpwYAAABKElEQVQY021O20rDQBTMpwv19iCICor1AoIX8E2sVbCCRehLBSMqFKxa2qaNSbOXnN3sZjebeKqvHmaHMzsHZryd8/uts7uVg+bS3tXC9sXq4fXyfrNWbyDjvlhv4I4uorZ7iXLjpLV52lo7ulk/vvWqsihsjuwKK6U0NlcqEwDO2aqq0CusLefjlNboFs4aY5RW1hqv+zbsvAwf/EH7afDcD+NZMg6CcTBlKQipRKal0iBVKrOYAiIiPEZQmXDpPfYm3V7YeQ3a/sh/n0RxlAqB11GcJJQTBuNJOCPsGx8HwkVCGKUpBc1AedgL61VliaQ5p6ORE+JP/tYuAKD6b4yxHhbTuVXaKOtUQtnnF+l/YAjGUpZSDtMwIpjGgHFBucRPlCSdJ/8AjHVAvx7sevMAAAAASUVORK5CYII='); background-size: cover; display: block;\"\n    >\n      <img\n        class=\"gatsby-resp-image-image\"\n        style=\"width: 100%; height: 100%; margin: 0; vertical-align: middle; position: absolute; top: 0; left: 0; box-shadow: inset 0px 0px 0px 400px white;\"\n        alt=\"getpartyiden\"\n        title=\"\"\n        src=\"/iManager_K8S/1014/static/ba4ecab3549fb2dbbb11ead41dca5afc/1e088/getpartyiden.png\"\n        srcset=\"/iManager_K8S/1014/static/ba4ecab3549fb2dbbb11ead41dca5afc/65ed1/getpartyiden.png 210w,\n/iManager_K8S/1014/static/ba4ecab3549fb2dbbb11ead41dca5afc/d10fb/getpartyiden.png 420w,\n/iManager_K8S/1014/static/ba4ecab3549fb2dbbb11ead41dca5afc/1e088/getpartyiden.png 840w,\n/iManager_K8S/1014/static/ba4ecab3549fb2dbbb11ead41dca5afc/78612/getpartyiden.png 1260w,\n/iManager_K8S/1014/static/ba4ecab3549fb2dbbb11ead41dca5afc/21cdd/getpartyiden.png 1680w,\n/iManager_K8S/1014/static/ba4ecab3549fb2dbbb11ead41dca5afc/03f69/getpartyiden.png 2197w\"\n        sizes=\"(max-width: 840px) 100vw, 840px\"\n      />\n    </span>\n  </span>\n  \n  </a>\n    </p>\n<ol start=\"6\">\n<li>On the page of your application, click on <strong>Set to receive messages via API</strong>.</li>\n<li>Fill in the Token and EncodingAESKey, you can define the settings, or acquire randomly.</li>\n<li>Fill the Token and EncodingAESKey in ‘deploy_weixin_token’ and ‘deploy_weixin_encoding_aes_key’ separately.</li>\n<li>Save and exit the .env file after configuring, start up iManager.</li>\n<li>\n<p>Fill in the URL on the <strong>Receive messages via API</strong> page of WeChat Work.</p>\n<ul>\n<li>\n<p>If iManager can be accessed by extranet, click <strong>Basic Services</strong> on the iManager page and find out <strong>imanager-weixin-hook</strong> in the service list. Fill in the address of the <strong>imanager-weixin-hook</strong> in the URL(eg, <code class=\"gatsby-code-text\">http://192.168.17.150:31112/imanager/weixin/web/api/</code>).</p>\n<blockquote>\n<p>Notes:<br>\nDo not forget the character ’/’ at the end of URL.</p>\n</blockquote>\n</li>\n<li>If iManager can not be accessed by extranet, find out the address of <strong>imanager-weixin-hook</strong>. You need a proxy address for <strong>imanager-weixin-hook</strong>, so the <strong>imanager-weixin-hook</strong> can be accessed by extranet. Fill in the proxy address in the URL.</li>\n</ul>\n<p>\n  <a\n    class=\"gatsby-resp-image-link\"\n    href=\"/iManager_K8S/1014/static/ab4638c3d215583668d5eebeec4a0043/adc48/APIconfigen.png\"\n    style=\"display: block\"\n    target=\"_blank\"\n    rel=\"noopener\"\n  >\n  \n  <span\n    class=\"gatsby-resp-image-wrapper\"\n    style=\"position: relative; display: block;  max-width: 840px; margin-left: auto; margin-right: auto;\"\n  >\n    <span\n      class=\"gatsby-resp-image-background-image\"\n      style=\"padding-bottom: 60%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAMCAIAAADtbgqsAAAACXBIWXMAAA7EAAAOxAGVKw4bAAABB0lEQVQoz41SW26EMAzk/jfocXqAnqE/lUpAOICTEPKiYwK7artbOgErsjWZcZxmHLUxdv2OEIIx3FYo1ff98gjNtoOZp2maBYxFNIC/XeFOHoZBa02a5BtIzmL2frFuCTH9RXY74ASRoY0fHgyXUqRc41NlwzAdY/xRRqa2l3N+Sg5hhWpKh71ySiETo3zlkfhBRoftZ0tEI24fC1Hr6uVaGQejnE7c9rmUuim/cCcbjHWHtZZlXJN1lvEArL0eFQx3Xad2kB5p9jXTqRYvBD2jL9WqeZrlDfnVew97B3nLwS9OhIzBVHlJ8CLTsw4bubYQUJTEGVNMTZ3iy+vH2zul1eWy/R9f6kq8x4oodncAAAAASUVORK5CYII='); background-size: cover; display: block;\"\n    >\n      <img\n        class=\"gatsby-resp-image-image\"\n        style=\"width: 100%; height: 100%; margin: 0; vertical-align: middle; position: absolute; top: 0; left: 0; box-shadow: inset 0px 0px 0px 400px white;\"\n        alt=\"APIconfig\"\n        title=\"\"\n        src=\"/iManager_K8S/1014/static/ab4638c3d215583668d5eebeec4a0043/1e088/APIconfigen.png\"\n        srcset=\"/iManager_K8S/1014/static/ab4638c3d215583668d5eebeec4a0043/65ed1/APIconfigen.png 210w,\n/iManager_K8S/1014/static/ab4638c3d215583668d5eebeec4a0043/d10fb/APIconfigen.png 420w,\n/iManager_K8S/1014/static/ab4638c3d215583668d5eebeec4a0043/1e088/APIconfigen.png 840w,\n/iManager_K8S/1014/static/ab4638c3d215583668d5eebeec4a0043/adc48/APIconfigen.png 979w\"\n        sizes=\"(max-width: 840px) 100vw, 840px\"\n      />\n    </span>\n  </span>\n  \n  </a>\n    </p>\n</li>\n<li>Save the settings on <strong>Receive messages via API</strong> page.</li>\n<li>Download WeChat Work App for PC or smart phone, login and enjoy the alarm application.</li>\n</ol>","frontmatter":{"title":"Tutorial","next":null,"prev":null},"fields":{"path":"content/tutorial/CreateWechatWarning.en.md","slug":"/en/tutorial/CreateWechatWarning/","langKey":"en"}}},"pageContext":{"slug":"/en/tutorial/CreateWechatWarning/"}}}