Skip to content

Commit

Permalink
Updated readme file
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwibowo committed Aug 22, 2011
1 parent a3def80 commit 9e40eb6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.markdown
Expand Up @@ -13,16 +13,16 @@ Sensis API Model
---------------------
POJO representations of the JSON result returned from SAPI. Usage:

<code>
<blockquote>

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);
</code>

</blockquote>

Sensis API Service
----------------------
Expand Down

0 comments on commit 9e40eb6

Please sign in to comment.