Skip to content

zier/line-api-server

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

line-api-server

#Development

git clone https://github.com/up9cloud/line-api-server.git

#Update dependencies

##install thrift

thrift

#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

rm -fr lib
cp -r <thrift folder>/lib/ .

##download line thrift spec file

line unofficial spec

rm -fr line-protocol
mv <line-protocol> line-protocol

##generate line thrift protocol code

thrift generate file

thrift -r --gen <language> line-protocol/line.thrift
thrift -r --gen <language> line-protocol/line_main.thrift

fix php namespace

./gen-php/fixPhpNamespace.sh

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 34.8%
  • C++ 14.0%
  • Java 10.3%
  • D 7.6%
  • C 5.4%
  • Pascal 3.8%
  • Other 24.1%