carpedm20 / LINE

May the LINE be with you...
http://carpedm20.github.io/line/
Other
823 stars 192 forks source link

Is the api still working? #110

Open tunchunairarko opened 7 years ago

tunchunairarko commented 7 years ago

So far in the internet this is the only LINE api that I think the best. However I installed the api in python, copied the example code, entered my username and password and after running that nothing happens, in the console window it shows that it is executed, and the execution is complete, but no login nothing happens.

infinitylabs commented 7 years ago
pip install line && pip uninstall -y line
git clone https://github.com/carpedm20/LINE.git
cd LINE/line
wget https://gist.github.com/windows98SE/b739038218b6fe4d423f/raw/5f68cf3d9a2a88576b739810a6bd6fcaa0c5e940/api.py.patch --no-check-certificate
patch api.py < api.py.patch
cd ..
python config.py
python setup.py install

Then copy the echobot.py example and make sure to add the bots account as a friend or join it to a group for testing.

monhustla commented 7 years ago

at: 'patch api.py< api.py.patch'

It simply opened up another command prompt that did nothing. This bot is driving me nuts.

infinitylabs commented 7 years ago

depending on your distro you would do something similar if patch isnt installed. this is for Debian/Ubuntu: apt-get update apt-get upgrade apt-get install python-dev git pip patch

monhustla commented 7 years ago

I just installed patch and added it to path. It was in the same folder as wget for me.

I ended up getting my auth token but the line message that popped up on my phone said it doesn't support these messages. I hope it works out.

infinitylabs commented 7 years ago

Thats normal, if your bot cant see your messages make sure you go into your settings and turn off letter sealing. good luck!

monhustla commented 7 years ago

I just deployed it to heroku I'm getting a bid thrift protocol smh. Haha I just figured out the official bot and it was a bit of a painstaking process to webhook all of your followers. Hopefully I get this one to work.

Thanks for the help @infinitylabs

infinitylabs commented 7 years ago

most of the errors are documented in the issues here but if you installed the latest thrift just do pip uninstall thrift pip install thrift==0.9.3

monhustla commented 7 years ago

Is there any reason you could think of why this would work locally in cmd but not heroku if I updated API.py and client.py on my repo correctly?

(Sorry about the questions) On Wed, May 31, 2017 at 11:07 PM infinitylabs notifications@github.com wrote:

most of the errors are documented in the issues here but if you installed the latest thrift just do pip uninstall thrift pip install thrift==0.9.3

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/carpedm20/LINE/issues/110#issuecomment-305383712, or mute the thread https://github.com/notifications/unsubscribe-auth/AT26G0VWMJgWvJOxxvBOX0LQ6E70VMcAks5r_jkXgaJpZM4NkqzM .

Nilpo commented 7 years ago

Heroku won't allow your bot to save the login certificate due to permissions. You'll need to alter your code to save it somewhere else instead.