How do I integrate Line Works in my web app?

bajracharyasushant

2017.08.04既読 2879

Anyone can view all written contents. 

Do not enter any private information such as an account name, domain name, API ID and ConsumerKey.

Hi guys,

 

I need to integrate LINE WORKS into my web app and I am stuck. I have checked the developer documentation as well but I am still stuck :(  

 

I need to integrate the LINE WORKS`s  chat feature. For eg, if someone registers into my web app, a message should be sent into a group (#channel in case of slack).

 

Please let me know how I can achieve that.

コメント8

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

    LINE WORKS 公式アカウント

    Our 'Bot API' currently support only 1:1 chat rooms, sorry.

    2017.08.04

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

    bajracharyasushant 投稿者

    ya that would do too but I am lost. I looked into the docs and cant figure out how to use the api. Like do i have to configure the sso before using it? It would be great if you could send me a reference to some tutorials :)

    2017.08.04

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

    LINE WORKS 公式アカウント

    This API do not require SSO setting, but OAuth based server authentication is required.
    Please check a "server api authentication" process in a following doc.
    https://developers.worksmobile.com/jp/document/1002001#

    2017.08.04

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

    bajracharyasushant 投稿者

    Correct me if I am wrong but is not oauth only for Service Api?

    2017.08.07

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

    bajracharyasushant 投稿者

    if i were to post a message to one of the chat rooms, what would you suggest that I use? Server or Service Api? Server api looks very complex but service api looks easy but i am unable to make it work

    2017.08.07

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

    bajracharyasushant 投稿者

    plus why is there a static authorization code?


    import org.apache.commons.httpclient.HttpClient;
    import org.apache.commons.httpclient.NameValuePair;
    import org.apache.commons.httpclient.methods.PostMethod;

    public class ServiceApiTest {

       public void testGetAccessToken() throws Exception {
           String url = "https://sandbox-auth.worksmobile.com/oauth/token";;
           String consumerKey = "LQwDde6x8eV4ROOCOdSW";
           String authorizationCode = "QkJxMFc4ekRnMGdLNjhOMQ==";
    .....
    and how do i get and authorization code

    2017.08.07

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

    bajracharyasushant 投稿者

    any help with this one ^^ ?

    2017.08.08

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

    LINE WORKS 公式アカウント

    OAuth is required for both service/server api and Bot API is one of server APIs, not service API.

    I also find one more issue in your test.
    Talk bot api is not provided in Sandbox for now. Please try it in a normal environment.

    2017.08.08

    0
前の投稿チームトークルームへのメッセージ送信
次の投稿Salesforceの取引先オブジェクト内にLINEWORKSトーク履歴項目を作成したい
リスト

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