That line_id is incorrect. It seems set LINE ID (from LINE app). However it should set userId getting from webhook source user object. It also get from LINE Developer Console.
Hi, Dinson Damien. As Shiraki-san said "userid also get from LINE Developer Console.", you can get your userid via LINE Developer Console. The prefix of userid is "U". Please check it.
Can you try to get your userid from the page and paste it to your source code for test? What will happen?
Shiraki-san, thank you for the reply.
I do not have any group. I have a list of LINE ID in my website DB. For example, 'Takako', 'Yuuki', 'Jackson' I want to send a different message to them one by one. For example, Takako: "Hello Takako-san, i am sending you this message because trigger1 event was caught on our website." Yuuki: "Hello Yuuki-san. Can you please check your email" etc.
"However it should set userId getting from webhook source user object."→ I have the LINE ID of Takako, Yuuki and Jackson from LINE app. But, I do not have the userId (which you mentioned) for Takako or Yuuki or Jackson. So, how can I get the userId corresponding to Takako, Yuuki or Jackson?
Can anyone please help me with the issue of how to get the userid from the Line ID (from the app)?
Can anyone please help me?
I will try to get my own userid from Line Dev console and report back here.