5 ms·
If you prefer other languages, we also got: Python: https://github.com/Maluuba/napi-python/blob/master/tests/test_client.py https://github.com/Maluuba/napi-pyt
by drewch 14y ago
If you prefer other languages, we also got:
Python: https://github.com/Maluuba/napi-python/blob/master/tests/test_client.py https://github.com/Maluuba/napi-python/blob/master/tests/tes...
Java: https://github.com/Maluuba/napi-java/blob/master/src/test/java/com/maluuba/napi/client/MaluubaNAPIClientTest.java https://github.com/Maluuba/napi-java/blob/master/src/test/ja...
Here is an example of a sentence and response:
>> client.interpret phrase: 'Set up a meeting with Bob tomorrow night at 7 PM to discuss the TPS reports'
response:
{:entities=>
{
:daterange=> [{
:start=>"2012-11-15",
:end=>"2012-11-16"
}],
:title=> ["meeting to discuss the tps reports"],
:timerange=> [{
:start=>"12:00:00AM",
:end=>"12:00:00AM"
}],
:contacts=>[{
:name=>"bob"
}]
},
:action=>:CALENDAR_CREATE_EVENT,
:category=>:CALENDAR
}