Skip to content

Sensis/sensis-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sensis API

Overview

This project is intended to ease development when using Sensis Search API (SAPI). There are two modules contained within the project:

  • Sensis API Model
  • Sensis API Service

Sensis API Model

POJO representations of the JSON result returned from SAPI. Usage:

        java.net.URL url = new java.net.URL(getEndpoint() + "?key=" + key +
            "&query=" + java.net.URLEncoder.encode(keyword, "UTF-8") +
            "&location=" + java.net.URLEncoder.encode(location, "UTF-8"));
        HttpURLConnection connection = = (HttpURLConnection) url.openConnection();
        ObjectMapper objectMapper = JacksonObjectMapperFactory.create();
        InputStream inputStream = connection.getInputStream();
        return objectMapper.readValue(inputStream, SearchResult.class);

Sensis API Service

About

Helpers for Sensis API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published