Ruby

Use the Maluuba nAPI from your Ruby or Rails app by including a simple Gem.

Installation

gem install maluuba_napi

Sample Usage

>> require 'rubygems'
>> require 'maluuba_napi'
>> c = MaluubaNapi::Client.new 'apikey'
>> c.interpret phrase: 'Set up a meeting with Bob tomorrow night at 7 PM to discuss the TPS reports'
>> c.normalize
     phrase: 'tomorrow',
     type: 'daterange',
     timezone: 'EST'

Python

Call the Maluuba nAPI from Python using a simple package, available now on PyPI.

Installation

pip install maluuba_napi

Sample Usage

>>> from maluuba_napi import client
>>> c = client.NAPIClient('apikey')
>>> c.interpret('Set up a meeting with Bob tomorrow night at 7 PM to discuss the TPS reports')
>>> c.normalize(
      'tomorrow',
      type=NAPINormalizeType.DATERANGE,
      timezone='EST')

Java

Make use of the Maluuba nAPI from your Java programs using this simple-to-build Maven artifact.

Installation

git clone git@github.com:Maluuba/napi-java.git  && cd napi-java && mvn install

Sample Usage

client = new MaluubaNAPIClient("api");

client.interpret(new InterpretRequest(
    "Set up a meeting with Bob tomorrow night at 7 PM to discuss the TPS reports")
client.normalize(new NormalizeRequest(
  "tomorrow",
    NormalizeEntityType.DATE_RANGE,
    TimeZone.getTimeZone("EST"));

Need Help?

Tweet us at @MaluubaInc or join us in #maluuba on irc.freenode.net