Skip to content
 
 

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

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

2 stars

Watchers

17 watching

Forks

Releases

Packages

Contributors