Tutorial to update LINE Login Authentication Token
- Dominant language
- Python
- Stars
- 827
- Forks
- 189
- PR merge metrics
- No merged PRs in 30d
Description
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.

Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.