Giter Site home page Giter Site logo

liquidplanner / api-examples Goto Github PK

View Code? Open in Web Editor NEW
19.0 9.0 10.0 64 KB

Example of using the LiquidPlanner Classic API

C# 8.86% Makefile 0.74% C++ 16.05% C 0.18% Go 3.27% Java 13.19% JavaScript 6.17% Perl 3.64% PHP 11.47% Python 14.06% Ruby 12.70% Raku 1.60% Visual Basic .NET 8.08%

api-examples's Introduction

LiquidPlanner Classic API

These files show how to access the LiquidPlanner Classic 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:

See the docs at:

for more info on the API.


C#

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

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

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:


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:


Ruby

The Ruby example uses httparty:


VB.net

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

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

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.