I created a Python library to call the LINE WORKS API

Good evening, this is @ 0yan. I often use LINE WORKS talk bots, so I created a Python library in September last year to call the LINE WORKS API ... but I didn't write the README.md properly and other people A garbage library that can't be used. This time, I wrote README.md properly, fixed the bug, and released it again (I wrote it in Japanese because it is a Japanese business chat).

How to use

  1. Instantiate the TalkBotApi class
  2. Use methods of the TalkBotApi class

You can send a message to the talk bot in 2 steps.

Example of use

from lineworks import TalkBotApi

api_id = "your api id."
server_api_consumer_key = "your server api consumer key"
server_id = "your server id."
private_key = "your private key."
domain_id = "your domain id."
bot_no = "your bot number."

talk_bot = TalkBotApi(api_id, server_api_consumer_key, server_id, private_key, domain_id, "your bot no.(option)")

#Send message (Text)
talk_bot.send_text_message(send_text="Hello", account_id="[email protected]")

Details are described in the README on GitHub. We hope you will take advantage of it. Thank you.

Recommended Posts

I created a Python library to call the LINE WORKS API
Created a Python wrapper for the Qiita API
[Python] I tried to make a simple program that works on the command line using argparse.
[LINE Messaging API] I want to send a message from the program to everyone's LINE
I wanted to use the Python library from MATLAB
I made a python library to do rolling rank
Call the API with python3.
Publish / upload a library created in Python to PyPI
How to use the __call__ method in a Python class
Throw appointments to others with the LINE WORKS calendar API
[Python] I asked LINE BOT to answer the weather forecast.
I want to send a message from Python to LINE Bot
I made a Chatbot using LINE Messaging API and Python
[Python] How to import the library
I tried to create a RESTful API by connecting the explosive Python framework FastAPI to MySQL.
I made a library to easily read config files with Python
I want to know the weather with LINE bot feat.Heroku + Python
[For beginners] How to register a library created in Python in PyPI
I wanted to solve the ABC164 A ~ D problem with Python
After researching the Python library, I understood a little about egg.info.
I made a library that adds docstring to a Python stub file.
I made a Chatbot using LINE Messaging API and Python (2) ~ Server ~
How to send a request to the DMM (FANZA) API with python
I made a Python wrapper library for docomo image recognition API.
I want to build a Python environment
I tried to touch the COTOHA API
I tried to make a Web API
I created a password tool in Python.
I created a Go library nzargv that arranges command line arguments nicely.
I tried to make "Sakurai-san" a LINE BOT with API Gateway + Lambda
I tried to get the authentication code of Qiita API with Python.
I made a library konoha that switches the tokenizer to a nice feeling
I tried to get the movie information of TMDb API with Python
I made a program to check the size of a file in Python
A note I looked up to make a command line tool in Python
Python: I want to measure the processing time of a function neatly
I made a function to see the movement of a two-dimensional array (Python)
How to use the C library in Python
I checked the library for using the Gracenote API
Send a message to LINE with Python (LINE Notify)
I want to make a game with Python
I tried to touch the API of ebay
A memorandum about the Python tesseract wrapper library
A python amateur tries to summarize the list ②
[Python] I will upload the FTP to the FTP server.
I want to write to a file with Python
[Python] Throw a message to the slack channel
I want to display the progress in Python!
I made a Python Qiita API wrapper "qiipy"
Various ways to read the last line of a csv file in Python
I made a LINE BOT that returns a terrorist image using the Flickr API
I created a tool to correct GPS data with Mapbox Map Matching API (Mapbox Map Matching API)
I made a library to operate AWS CloudFormation stack from CUI (Python Fabric)
[Python] Created a class to play sin waves in the background with pyaudio
[Python] Deep Learning: I tried to implement deep learning (DBN, SDA) without using a library.
I tried using the Python library "pykakasi" that can convert kanji to romaji.
I wanted to visualize 3D particle simulation with the Python visualization library Matplotlib.
I searched for the skills needed to become a web engineer in Python
Convert the cURL API to a Python script (using IBM Cloud object storage)
[Python] I tried to get the type name as a string from the type function
I want to get the file name, line number, and function name in Python 3.4