You are right. I didn't need web dev module to accomplish this... just a lot of reading.
Final working code:
headers = {'Authorization': 'Bearer Iyo5Kd_this_is_some_long_string_1cDny'}
data = {"to": "U48_user_id_found_in_webhook_4a4", "messages":[{"type":"text","text":"Hello, world1"}]}
uri = 'https://api.line.me/v2/bot/message/push'
response = system.net.httpClient().post(url = uri, headers=headers, data=data)
print response
Steps to get here:
-
Create LINE Developers account.
-
Create an official channel.
- For testing create a RequestBin that will accept a webhook.
- Enable webook URL created at pipedream in LINE developers account.
-
When a user adds the official LINE account a webhook will be sent to Pipedream where you can identify the userId.
-
Put the UserId from pipedream into the working code above in an Ignition script console and that user will receive the message.
Now my next problem is how do I collect various UserId as people on the floor add the official LINE account but I may just throw that problem back to the official IT department.