Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
OrganizationAdvent CalendarQiitadon (β)
Qiita JobsQiita ZineQiita Blog
Help us understand the problem. What is going on with this article?

API で LINE WORKS の外部トーク連携を有効化する

More than 1 year has passed since last update.

API で LINE WORKS の外部トーク連携を有効化する

LINE WORKS はメンバーごとに、一般の LINE ユーザーや、組織外の LINE WORKS ユーザーとのメッセージ送受信を許可できます。

GUI の管理画面からも設定できますが、API 操作による設定も可能です。

URL: https://developers.worksmobile.com/jp/document/100600701?lang=ja

PowerShell による API 実行例

以下、PowerShell による API 実行例

$header = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"
$header.Add("Content-Type","application/json; charset=UTF-8")
$header.Add("consumerKey","<Server API Consumer Key>")
$header.Add("Authorization","Bearer <Server Token>")

$Uri = "https://apis.worksmobile.com/r/<API ID>/contact/v2/domains/$domainId/worksats/line/accounts/<USER ID>"

Invoke-RestMethod -Uri $Uri -Method Post -Header $header

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away