{"id":2324,"date":"2016-11-04T02:04:26","date_gmt":"2016-11-03T17:04:26","guid":{"rendered":"http:\/\/1bed.allright.life\/?p=2324"},"modified":"2020-04-18T21:04:05","modified_gmt":"2020-04-18T12:04:05","slug":"post-2324","status":"publish","type":"post","link":"https:\/\/1bed.allright.life\/?p=2324","title":{"rendered":"Microsoft Teams \u306b PowerShell \u3067\u6295\u7a3f\u3057\u3066\u307f\u308b"},"content":{"rendered":"<h2>\u7d4c\u7def<\/h2>\n<p>Microsoft \u304b\u3089\u5bfe\u6297 Slack \u3068\u5642\u3055\u308c\u3066\u3044\u305f\u30b5\u30fc\u30d3\u30b9\u304c\u767a\u8868\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u666e\u6bb5\u4ed5\u4e8b\u3067 Office365 \u3092\u4f7f\u3063\u3066\u3044\u308b\u79c1\u306b\u3068\u3063\u3066\u306f\u3001Microsoft Teams \u306f\u3068\u3066\u3082\u30ef\u30af\u30ef\u30af\u3059\u308b\u30b5\u30fc\u30d3\u30b9\u3067\u3059\u306d\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/blogs.office.com\/2016\/11\/02\/introducing-microsoft-teams-the-chat-based-workspace-in-office-365\/\">Introducing Microsoft Teams\u2014the chat-based workspace in Office 365<\/a><\/li>\n<\/ul>\n<p>\u65e9\u901f\u3067\u3059\u304c Microsft Teams \u306b PowerShell \u304b\u3089\u6295\u7a3f\u3057\u3066\u307f\u308b\u3053\u3068\u3092\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<h2>\u691c\u8a3c\u74b0\u5883<\/h2>\n<ul>\n<li>Windows 10 Pro<\/li>\n<li>PowerShell 5.0<\/li>\n<\/ul>\n<h2>\u624b\u9806<\/h2>\n<ul>\n<li>\n<p>\u30c1\u30e3\u30cd\u30eb\u540d\u306e\u53f3\u306b\u3042\u308b\u70b9\u3005\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001\u30b3\u30cd\u30af\u30bf\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059<br \/>\n<a href=\"http:\/\/1bed.allright.life\/wp-content\/uploads\/2016\/11\/1.png\" data-rel=\"lightbox-image-0\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" src=\"http:\/\/1bed.allright.life\/wp-content\/uploads\/2016\/11\/1-300x156.png\" alt=\"\" \/><\/a><\/p>\n<\/li>\n<li>\n<p><strong>Incoming Webhook<\/strong> \u3092\u63a2\u3057\u3066 <strong>\u8ffd\u52a0<\/strong> \u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059<br \/>\n<a href=\"http:\/\/1bed.allright.life\/wp-content\/uploads\/2016\/11\/2.png\" data-rel=\"lightbox-image-1\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" src=\"http:\/\/1bed.allright.life\/wp-content\/uploads\/2016\/11\/2-300x221.png\" alt=\"\" \/><\/a><\/p>\n<\/li>\n<li>\n<p>\u540d\u524d\u3084\u30a2\u30a4\u30b3\u30f3\u3092\u8a2d\u5b9a\u3057\u307e\u3059<br \/>\n<a href=\"http:\/\/1bed.allright.life\/wp-content\/uploads\/2016\/11\/3-1.png\" data-rel=\"lightbox-image-2\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" src=\"http:\/\/1bed.allright.life\/wp-content\/uploads\/2016\/11\/3-1-300x232.png\" alt=\"\" \/><\/a><\/p>\n<\/li>\n<li>\n<p>\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u3066 <strong>\u4f5c\u6210<\/strong> \u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059<br \/>\n<a href=\"http:\/\/1bed.allright.life\/wp-content\/uploads\/2016\/11\/3-2.png\" data-rel=\"lightbox-image-3\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" src=\"http:\/\/1bed.allright.life\/wp-content\/uploads\/2016\/11\/3-2-300x70.png\" alt=\"\" \/><\/a><\/p>\n<\/li>\n<li>\n<p>URL \u304c\u8868\u793a\u3055\u308c\u307e\u3059\u306e\u3067\u3001\u30b3\u30d4\u30fc\u3057\u3066\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u306b\u3067\u3082\u8cbc\u308a\u4ed8\u3051\u3066\u304a\u304d\u307e\u3059<br \/>\n<a href=\"http:\/\/1bed.allright.life\/wp-content\/uploads\/2016\/11\/4.png\" data-rel=\"lightbox-image-4\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" src=\"http:\/\/1bed.allright.life\/wp-content\/uploads\/2016\/11\/4-300x116.png\" alt=\"\" \/><\/a><\/p>\n<\/li>\n<li>\n<p>\u30c1\u30e3\u30cd\u30eb\u306e\u753b\u9762\u306b\u623b\u308b\u3068 3 \u3067\u4ed8\u3051\u305f\u540d\u524d\u3068\u30a2\u30a4\u30b3\u30f3\u306e\u4f55\u8005\u304b\u304c\u53c2\u52a0\u3057\u3066\u3044\u307e\u3059<br \/>\n<a href=\"http:\/\/1bed.allright.life\/wp-content\/uploads\/2016\/11\/6.png\" data-rel=\"lightbox-image-5\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" src=\"http:\/\/1bed.allright.life\/wp-content\/uploads\/2016\/11\/6-300x236.png\" alt=\"\" \/><\/a><\/p>\n<\/li>\n<li>\n<p>Hello World<br \/>\n<a href=\"http:\/\/1bed.allright.life\/wp-content\/uploads\/2016\/11\/7.png\" data-rel=\"lightbox-image-6\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" src=\"http:\/\/1bed.allright.life\/wp-content\/uploads\/2016\/11\/7-300x89.png\" alt=\"\" \/><\/a><br \/>\n1\u4e07\u5e74\u30682000\u5e74\u524d\u304b\u3089\u4f7f\u308f\u308c\u308b\u3053\u306e\u30d5\u30ec\u30fc\u30ba\u3092\u4f7f\u3044\u307e\u3059\u3002<br \/>\n\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3092 PowerShell \u304b\u3089\u5165\u529b\u3059\u308b\u3068\u753b\u50cf\u306e\u3088\u3046\u306b\u6295\u7a3f\u3055\u308c\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"language-powershell\">$URI = &#039;\u30b3\u30d4\u30fc\u3057\u3066\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u306b\u3067\u3082\u8cbc\u308a\u4ed8\u3051\u3066\u304a\u3044\u305f URL&#039;\n$body = ConvertTo-JSON @{\n  text  = &#039;Hello World&#039;\n}\nInvoke-RestMethod -uri $URI -Method Post -body $body -ContentType &#039;application\/json&#039;<\/code><\/pre>\n<ul>\n<li>Office 356 Connectors API \u3092\u4f7f\u3063\u3066\u5c11\u3057\u30ea\u30c3\u30c1\u306a\u6295\u7a3f\u3092\u8a66\u3059<br \/>\n\u6210\u529f\u3059\u308b\u3068\u3053\u306e\u3088\u3046\u306a\u611f\u3058\u3067\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br \/>\nOffice 356 Connectors API \u306f\u4eca\u56de\u59cb\u3081\u3066\u4f7f\u3063\u305f\u306e\u3067\u3059\u304c\u697d\u3057\u3044\u3067\u3059\u306d\u3002<br \/>\n<a href=\"http:\/\/1bed.allright.life\/wp-content\/uploads\/2016\/11\/9.png\" data-rel=\"lightbox-image-7\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" src=\"http:\/\/1bed.allright.life\/wp-content\/uploads\/2016\/11\/9-300x148.png\" alt=\"\" \/><\/a><\/li>\n<\/ul>\n<pre><code class=\"language-powershell\">$URI = &#039;\u30b3\u30d4\u30fc\u3057\u3066\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u306b\u3067\u3082\u8cbc\u308a\u4ed8\u3051\u3066\u304a\u3044\u305f URL&#039;\n$body = ConvertTo-JSON -Depth 4 @{\n  summary  = &#039;Microsoft Teams \u30c6\u30b9\u30c8&#039;\n  title    = &#039;\u81ea\u5df1\u7d39\u4ecb&#039;\n  sections = @(\n    @{\n      activityTitle = &#039;miyamiya&#039;\n      activityImage = &#039;http:\/\/1bed.allright.life\/wp-content\/uploads\/2010\/08\/904153-150x150.jpg&#039;\n    }\n    @{\n      title = &#039;facts \u30c6\u30b9\u30c8&#039;\n      facts = @(\n        @{\n          name  = &#039;\u597d\u304d\u306a\u98df\u3079\u7269&#039;\n          value = &#039;\u30b9\u30c6\u30fc\u30ad, \u30e9\u30fc\u30e1\u30f3&#039;\n        }\n        @{\n          name  = &#039;\u597d\u304d\u306a\u82b8\u80fd\u4eba&#039;\n          value = &#039;misono&#039;\n        }\n        @{\n          name  = &#039;\u597d\u304d\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u8a00\u8a9e&#039;\n          value = &#039;PHP&#039;\n        }\n      )\n    }\n  )\n}\n$body = [Text.Encoding]::UTF8.GetBytes($body)\nInvoke-RestMethod -uri $URI -Method Post -body $body -ContentType &#039;application\/json&#039;<\/code><\/pre>\n<h2>\u53c2\u8003 URL<\/h2>\n<ul>\n<li><a href=\"https:\/\/dev.outlook.com\/Connectors\/Reference\">Office 365 Connectors API Reference<\/a><\/li>\n<li><a href=\"https:\/\/blogs.technet.microsoft.com\/privatecloud\/2016\/11\/02\/post-notifications-to-microsoft-teams-using-powershell\/\">Post notifications to Microsoft Teams using PowerShell<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u7d4c\u7def Microsoft \u304b\u3089\u5bfe\u6297 Slack \u3068\u5642\u3055\u308c\u3066\u3044\u305f\u30b5\u30fc\u30d3\u30b9\u304c\u767a\u8868\u3055\u308c\u307e\u3057\u305f\u3002 \u666e\u6bb5\u4ed5\u4e8b\u3067 Office365 \u3092\u4f7f\u3063\u3066\u3044\u308b\u79c1\u306b\u3068\u3063\u3066\u306f\u3001Microsoft Teams \u306f\u3068\u3066\u3082\u30ef\u30af\u30ef\u30af\u3059\u308b\u30b5\u30fc\u30d3\u30b9\u3067\u3059\u306d\u3002 I [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,66],"tags":[100,62],"class_list":["post-2324","post","type-post","status-publish","format-standard","hentry","category-program","category-tool","tag-microsoft-teams","tag-powershell"],"_links":{"self":[{"href":"https:\/\/1bed.allright.life\/index.php?rest_route=\/wp\/v2\/posts\/2324","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/1bed.allright.life\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/1bed.allright.life\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/1bed.allright.life\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/1bed.allright.life\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2324"}],"version-history":[{"count":14,"href":"https:\/\/1bed.allright.life\/index.php?rest_route=\/wp\/v2\/posts\/2324\/revisions"}],"predecessor-version":[{"id":3140,"href":"https:\/\/1bed.allright.life\/index.php?rest_route=\/wp\/v2\/posts\/2324\/revisions\/3140"}],"wp:attachment":[{"href":"https:\/\/1bed.allright.life\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2324"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/1bed.allright.life\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2324"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/1bed.allright.life\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2324"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}