コミュニティ

LINE WORKSのテクニカルエキスパート及び開発者と
コードのサンプル、リソース、Tip等を共有し問題解決への相談が可能です。

??dev_메인_타이틀_모바일_ja_JP??

問い合わせ

How do I integrate Line Works in my web app?

bajracharyasushant

2017.08.04既読 529

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トーク履歴項目を作成したい