LoginSignup
1
1

More than 3 years have passed since last update.

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

Last updated at Posted at 2019-06-02

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

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

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

TITLE: LINE/LINE WORKS 連携 (メンバー単位)
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

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1