Example of using the LiquidPlanner API
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
c#.net/LiquidPlanner
c++
go
java ensure streams are closed May 19, 2015
javascript
perl remove duplicate file Jul 26, 2013
php Fix indentation in geckoboard example Oct 24, 2016
python cleanup Sep 21, 2014
ruby
vb.net ensure connections are closed May 14, 2015
.gitmodules
README.md

README.md

##These files show how to access the LiquidPlanner API from:

  • C#
  • C++
  • Go
  • Java
  • Perl
  • PHP
  • Python
  • Ruby
  • VB.net

If you don't already have a LiquidPlanner account, you can sign up at:

http://www.liquidplanner.com/

See the docs at:

http://www.liquidplanner.com/api

for more info on the API.


C#

If you don't have Visual Studio, you can get Visual C# Express free from Microsoft:

http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-csharp-express

You'll need the JSON.net library from CodePlex:

http://json.codeplex.com/

Unzip the JSON.net library, open the LP project, and add a reference to the JSON.net DLL in the unzipped files.


C++

The C++ example uses the following libraries

  • Google Test
  • JsonCpp
  • Boost C++ Libraries
  • restclient-cpp

On Ubuntu, you can install them with:

$ sudo apt-get install libgtest-dev

# you will need to compile and install.
# installed files can be found in /usr/src/gtest

$ sudo apt-get install libjsoncpp-dev

$ sudo apt-get install libboost-all-dev

$ git submodule init
$ cd inc/restclient-cpp

# if you're on ubuntu 12.10 or later, use AutoMake.

# Otherwise:

$ git checkout 5a5e6b05e809a9d8aac32c937ba2e8654a1aa5a7
$ make

Go

To use the Go example:

Follow the instructions at https://golang.org/doc/code.html to setup your go workspace.

Create a package and copy go/liquidplanner_demo.go into into it.

You will need to to fetch two packages

$ go get code.google.com/p/gopass
$ go get github.com/liquidplanner/liquidplanner_go 

$ go build github.com/YOUR_NAME/YOUR_PACKAGE
$ go install github.com/YOUR_NAME/YOUR_PACKAGE
$ ./bin/YOUR_PACKAGE

Java

The Java example uses the GSON library:

http://code.google.com/p/google-gson/


Perl

The Perl example uses the following libraries from CPAN

  • REST::Client
  • IO::Uncompress::Gunzip
  • JSON
  • Term::ReadKey

PHP

Uses libraries included with a standard PHP install.

On Ubuntu, you may need to install php5-curl

apt-get install php5-curl

Python

The Python example uses the requests library:

http://docs.python-requests.org/en/latest/user/install/#install


Ruby

The Ruby example uses httparty:

https://github.com/jnunemaker/httparty/


VB.net

As with C#, you can use VB.net Express:

http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-basic-express

and you'll need the JSON.net library from CodePlex:

http://json.codeplex.com/