Bot

Need help with message bot

VSarala

2021.08.17既読 2671

Hi Team,

I need help to understand few doubts regarding message bot

  • What is domain Id in this API call 

https://developers.worksmobile.com/jp/document/1005004?lang=en
  • DomainId which is visible in developer console with tenant id, what is this domain id belongs to?

  • I am not able to create new domain in my account

  • I am not able to register the domain id(taken from the developer console) with message bot

  • What is 'accountId' in API call 

https://developers.worksmobile.com/jp/document/1005008?lang=enAnd from where i can refer or get it. I am using this api to get private contact.
{
    "message": "",
    "data": {
        "totalLength": 10,
        "resultData": [{
            "contactNo": 100000000000001,
            "name": "Name",
            "tel": "000-1111",
            "email": "email@test.com",
            "organization": "organization",
            "department": "department",
            "jobTitle": "title",
            "photoUrl": "https://api.contact.worksmobile.com/mobile/personalPhoto.nhn?path=111.jpg&type=m320",
            "importantContactYn": "N",
                        "worksAt": {
                           "serviceType": "line",
                           "worksAtContactNo": 901000000011000
                        }
        }]
    },
    "code": "SUCCESS",
    "failType": null
}
I don't see any accountId information in this response, could you please help me from which API i can get it.

コメント3

  • 업데이트 된 답글입니다.

    hi there,
    U can find domain ID which belong to tenant in Developers console (https://developers.worksmobile.com/jp/console/openapi/main).
    in Bot menu in Developers console, U can register domain of the msg bot.
    and.. accountId is what you login to lineworks like [id@test.com].

    2021.08.17

    0
  • 업데이트 된 답글입니다.

    VSarala 投稿者

    Hi Team,

    Thanks for the clarification regarding the domain ID, it was helpful, but how do I extract the account ID using an API call, when I try to fetch my private contacts I do not find any field corresponding to the account id as I have to send messages using the message API to my private contacts, so can you give me a way in which I can fetch the account id of my private contacts which I can fetch using an API call.

    2021.08.18

    0
  • 업데이트 된 답글입니다.

    LINE WORKS 公式アカウント

    The Talk Bot API sends a message to LINE WORKS users in the same tenant.
    You cannot send messages to external users such as clients.
    Also, private contacts do not have an accountId.
    ​​
    トーク Bot API は同じテナント内の LINE WORKS ユーザにメッセージを送信します。
    クライアントなどの外部ユーザにメッセージを送信することはできません。
    また、プライベート連絡先には accountId はありません。

    2021.08.23

    0
前の投稿 監査データダウンロードの戻り値に関して
次の投稿パスワードの一括設定について
リスト

まだ、解決できませんか?
今すぐ実際に使用しているLINE WORKSユーザーに質問してみましょう。