May the LINE be with you...
Project description
|PyPi version| |PyPi downloads|
May the LINE be with you…
>>> from line import LineClient
>>> client = LineClient("carpedm20", "xxxxxxxxxx")
Enter PinCode '9779' to your mobile phone in 2 minutes
>>> client = LineClient("carpedm20@gmail.com", "xxxxxxxxxx")
Enter PinCode '7390' to your mobile phone in 2 minutes
>>> print client.getProfile()
Installing
First, you need to install Apache Thrift. Install instructions are here. (This might take some time…)
Next:
$ pip install line
Or, you can use:
$ easy_install line
Or, you can also install manually:
$ git clone git://github.com/carpedm20/line.git $ cd LINE $ python setup.py install
Using
First, you need to create a LineClinet object with YOUR_ID and YOUR_PASSWORD. YOUR ID can be LINE email address or NAVER id.
>>> from line import LineClient >>> client = LineClient(YOUR_ID, YOUR_PASSWORD) Enter PinCode '9779' to your mobile phone in 2 minutes
After you enter PinCode to your mobile phone, you will get authToken.
>>> authToken = client.authToken >>> print authToken
With authToken, you don’t have to enter PinCode to your phone anymore!
>>> client = LineClient(authToken=authToken) >>> print client.getProfile()
Screenshot
License
Source codes are distributed under BSD license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
line-0.0.2.tar.gz
(6.6 kB
view details)
File details
Details for the file line-0.0.2.tar.gz.
File metadata
- Download URL: line-0.0.2.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10ca89938796be27e2f2af986cd295f0bb9e81c0ec05d50c4d9b2c80b0aded68
|
|
| MD5 |
c95aba256a28e092036427f0ca28ada1
|
|
| BLAKE2b-256 |
f30d2560fc99255f913e1ac9271e87b563b178819e8311818db4bbad895a3a7e
|