How to use Sensium?

Integrating Sensium into your application or service is super easy. Just follow these steps:

  1. Signup for a free API key
  2. Check out the features Sensium offers and get inspired by the apps showcase
  3. Setup your development environment. We support HTTP calls and Java
  4. Call the API, process the response and generate value from your data!

"Hello World"

Assuming you have setup your development environment, let's try to write a small "Hello World" that outputs the language of a text we supply to Sensium.

curl -i \
	-H "Content-Type: application/json" \
	-H "Accept: application/json" \
	-k \
	-X POST -d '{ "apiKey": "YOUR_API_KEY", "text": "I am a little pea, i love the sky and the trees" }' \
class HelloWorld { 
   public static void main(String[] argv) throws SensiumException {
      // create a new Sensium instance with your API key
      Sensium sensium = new Sensium("YOUR_API_KEY_HERE");
      // create the request, we specify the text to be analyzed      
      ExtractionRequest req = new ExtractionRequest();
      req.text = "I am a little pea, i love the sky and the trees.";
      // send the request and process the response!
      ExtractionResponse resp = sensium.extract(req);      
      System.out.println("Language: " + resp.language);