GithubHelp home page GithubHelp logo

nilpo / line Goto Github PK

View Code? Open in Web Editor NEW

This project forked from carpedm20/line

3.0 2.0 2.0 4.18 MB

May the LINE be with you...

Home Page: http://carpedm20.github.io/line/

License: Other

Makefile 0.23% Python 99.77%

line's Introduction

LINE

Join the chat at https://gitter.im/carpedm20/LINE

May the LINE be with you...

Installation

2017.05.27

Install Python:

This project requires Python 2. It will not run under the latest Python 3. If you have Python 3 installed, it's not a problem. You may have multiple versions installed side-by-side. The latest version of Python 2 can be downloaded for all platforms here.

Linux users installing Python from a repository should be sure to install the pip package. Typically something like python27 and python27-pip.

Install LINE from repository:

The LINE library has a number of dependencies. The easiest way to install them is through the use of a Python package manager such as pip or easy_install. (After installing the LINE library with dependencies, remove it leaving the dependencies behind. This allows the use of the libary files included in this repository.)

pip install LINE
pip uninstall LINE

Install LINE from source:

Alternatively, you may wish to install the LINE library from the source files.

git clone https://github.com/Nilpo/LINE.git
cd LINE
python config.py
python setup.py install

Uninstall Newer Versions of Apache Thrift:

Whichever method you used to install LINE, you will have installed Apache Thrift as a dependency. The current version Thrift 0.10.0 is unsupported and needs to be downgraded to Thrift 0.9.3.

pip uninstall thrift
pip install thrift==0.9.3

Set up Environmental Variables

It's a best practice to load private credentials from environment variables rather than hard-coding them into your project. This is the best way to handle login credentials such as usernames, passwords, and API keys.

For Windows:

  1. Click Start and search for Environment Variables.
  2. Click Edit the environment variables to open the System Properties dialog.
  3. Click Environment Variables.
  4. In the System variables section, click New.
  5. For Variable name, enter LINE_CLIENT_ID.
  6. For Variable value, enter your email address.
  7. Click OK.
  8. Repeat 5-7 to set up LINE_CLIENT_PASS.

For Mac/Linux:

The export command is used to assign environmental variables to your current session. Adding this to your .bash_profile file with allows these settings to persist across sessions.

export LINE_CLIENT_ID="[email protected]" >> ~/.bash_profile
export LINE_CLIENT_PASS="password" >> ~/.bash_profile

After adding these lines, you can reboot or reload your profile.

source ~/.bash_profile

Update

2015.05.28

sendImage and sendImageWithURL is fixed.

To send an Image:

>>> contact = client.contacts[0]
>>> contact.sendImage('./image.jpg')

Or use:

>>> contact = client.contacts[0]
>>> contact.sendImageWithURL('https://avatars3.githubusercontent.com/u/3346407?v=3&s=460')

2015.03.31

authToken expiration issue solved.

update authToken automatically:

$ pip install line --upgrade

There is nothing to change in your original code.

update authToken manually:

$ pip install line --upgrade
$ python
>>> from line import LineClient, LineGroup, LineContact
>>> client = LineClient("ID", "PASSWORD")
>>> client.updateAuthToken() # manual update
True

2014.08.08

Some codes are removed because of the request of LINE corporation. You can use library only with authToken login.

Screenshot

alt_tag

Author

Taehoon Kim / @carpedm20

line's People

Contributors

carpedm20 avatar cjltsod avatar clifflin avatar clyang avatar cybai avatar dtzwill avatar gitter-badger avatar mrswiss avatar nengoz avatar nilpo avatar samsam2310 avatar sh1ma avatar shinznatkid avatar turfaa avatar v123582 avatar wuboy0307 avatar zachary822 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

trevormike yavin5

line's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.