May the LINE be with you...
May the LINE be with you…
sendImage and sendImageWithURL is fixed.
To send an Image:
>>> contact = client.contacts >>> contact.sendImage('./image.jpg')
>>> contact = client.contacts >>> contact.sendImageWithURL('https://avatars3.githubusercontent.com/u/3346407?v=3&s=460')
authToken expiration issue solved.
update authToken automatically:
$ pip install line --upgrade
There is nothing to change in your original code.
update authToken manually:
$ pip install line --upgrade $ python >>> from line import LineClient, LineGroup, LineContact >>> client = LineClient("ID", "PASSWORD") >>> client.updateAuthToken() # manual update True
Some codes are removed because of the request of LINE corporation. You can use library only with authToken login.