From a066c37e049b20162cb71943a3c2a8613d441a27 Mon Sep 17 00:00:00 2001 From: vanduynslagerp Date: Tue, 14 Jan 2014 23:25:30 -0500 Subject: [PATCH] Updated README --- README.md | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/README.md b/README.md index 38ffc22..98722a2 100644 --- a/README.md +++ b/README.md @@ -71,47 +71,27 @@ For example if you use [Apache HTTP Client](http://hc.apache.org/) and [Jackson ### Direct API calls To call the Article API: ```java -<<<<<<< HEAD Article article = api.articles().analyze("").execute(); -======= -Article article = api.articles().get("").execute(); ->>>>>>> 169e8e10419e23bbcd4a6ae45baf056b5b6967ce ``` To call the Frontpage API: ```java -<<<<<<< HEAD Frontpage frontpage = api.frontpages().analyze("").execute(); -======= -Frontpage frontpage = api.frontpages().get("").execute(); ->>>>>>> 169e8e10419e23bbcd4a6ae45baf056b5b6967ce ``` To call the Image API: ```java -<<<<<<< HEAD Images images = api.images().analyze("").execute(); -======= -Images images = api.images().get("").execute(); ->>>>>>> 169e8e10419e23bbcd4a6ae45baf056b5b6967ce ``` To call the Product API: ```java -<<<<<<< HEAD Products products = api.products().analyze("").execute(); -======= -Products products = api.products().get("").execute(); ->>>>>>> 169e8e10419e23bbcd4a6ae45baf056b5b6967ce ``` To call the Product API: ```java -<<<<<<< HEAD Classified classified = api.classifier().analyze("").execute(); -======= -Classified classified = api.classifier().get("").execute(); ->>>>>>> 169e8e10419e23bbcd4a6ae45baf056b5b6967ce ``` If the Classified resulting object is of type Article, Image or Product it can be parsed as respectively as a corresponding Model: ```java @@ -129,19 +109,11 @@ The batch API allows to prepare multiple Article, Frontpage, Image, Product and/ To prepare requests to be executed in batch: ```java -<<<<<<< HEAD Future
fArticle = api.articles().analyze("").withTags().queue(); Future fFrontpage = api.frontpages().analyze("").queue(); Future fImages = api.images().analyze("").queue(); Future fProducts = api.products().analyze("").queue(); Future fClassified = api.classified().analyze("").queue(); -======= -Future
fArticle = api.articles().get("").withTags().queue(); -Future fFrontpage = api.frontpages().get("").queue(); -Future fImages = api.images().get("").queue(); -Future fProducts = api.products().get("").queue(); -Future fClassified = api.classified().get("").queue(); ->>>>>>> 169e8e10419e23bbcd4a6ae45baf056b5b6967ce ``` Note that this can be done concurrently by multiple threads. The Diffbot class is fully thread-safe.