Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tutorial to update LINE Login Authentication Token #75

Open
royl2k90 opened this issue May 31, 2016 · 1 comment
Open

Tutorial to update LINE Login Authentication Token #75

royl2k90 opened this issue May 31, 2016 · 1 comment

Comments

@royl2k90
Copy link

So the line.crt was at Python27 directory and not LINE directory itself. I deleted the LINE directory and line.crt and did a fresh pip installation of LINE via Git Bash.

$ 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 I launched Python27 command line, import LineClient and login with email and password. Then I am prompted to key in a PIN into my phone. This is the moment when line.crt is generated in Python27 directory.

Next, I printed out the current client authentication token. At this point, I am not supposed to point my current token to the client object otherwise it will throw an exception if I were to update the current token. That's because my login info (email and pwd) has been overwritten by the current token.

Right after I enter the first PIN, I am supposed to update the current token using the existing client object's login info (email and pwd). Then enter another different PIN into my phone and point back the updated token to my client object.

The picture below would illustrate the above 3 paragraphs.

loginauthline

@ghost
Copy link

ghost commented Mar 3, 2018

Still work?

I'm looking for,,… how to get authtoken line by automatically generate via urlQr line… coz "The WAPGW fails to connect to the remote server" in hours ago. ..

So help me...
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant