LINE icon indicating copy to clipboard operation
LINE copied to clipboard

Is the api still working?

Open tunchunairarko opened this issue 7 years ago • 9 comments

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.

tunchunairarko avatar May 24 '17 06:05 tunchunairarko

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.

infinitylabs avatar May 24 '17 20:05 infinitylabs

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

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

monhustla avatar Jun 01 '17 03:06 monhustla

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

infinitylabs avatar Jun 01 '17 03:06 infinitylabs

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.

monhustla avatar Jun 01 '17 03:06 monhustla

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

infinitylabs avatar Jun 01 '17 03:06 infinitylabs

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

monhustla avatar Jun 01 '17 03:06 monhustla

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

infinitylabs avatar Jun 01 '17 04:06 infinitylabs

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 [email protected] 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 .

monhustla avatar Jun 01 '17 04:06 monhustla

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.

Nilpo avatar Jun 26 '17 21:06 Nilpo