https://github.com/up9cloud/line-api-server
https://github.com/up9cloud/line-api-server
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/up9cloud/line-api-server
- Owner: up9cloud
- License: mit
- Created: 2014-08-13T07:45:51.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-08-26T09:02:56.000Z (almost 12 years ago)
- Last Synced: 2025-04-12T12:57:49.546Z (about 1 year ago)
- Language: PHP
- Size: 1.87 MB
- Stars: 10
- Watchers: 2
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
line-api-server
===============
#Development
```sh
git clone https://github.com/up9cloud/line-api-server.git
```
#Update dependencies
##install thrift
[thrift][thrift install]
```sh
#debian
sudo apt-get install libboost-dev libboost-test-dev libboost-program-options-dev libboost-system-dev libboost-filesystem-dev libevent-dev automake libtool flex bison pkg-config g++ libssl-dev
wget 'http://mirror.reverse.net/pub/apache/thrift/0.9.1/thrift-0.9.1.tar.gz'
tar -xf thrift-0.9.1.tar.gz
cd thrift-0.9.1
./configure
make && make install
```
##copy thrift lib
```sh
rm -fr lib
cp -r /lib/ .
```
##download line thrift spec file
[line unofficial spec][line-protocol]
```sh
rm -fr line-protocol
mv line-protocol
```
##generate line thrift protocol code
[thrift generate file][thrift tutorial]
```sh
thrift -r --gen line-protocol/line.thrift
thrift -r --gen line-protocol/line_main.thrift
```
fix php namespace
```sh
./gen-php/fixPhpNamespace.sh
```
[thrift install]:http://thrift.apache.org/docs/install/
[thrift tutorial]:http://thrift.apache.org/tutorial/
[line-protocol]:http://altrepo.eu/git/line-protocol.git/