From 2ff24b4d8af3a3012eba1de01a9111d60fa1ff06 Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Wed, 8 Apr 2015 15:53:39 +0530 Subject: [PATCH 01/66] Bump Version --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index bdfeee3..c9ba464 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.semantics3 Sem3Java - 1.1.4-SNAPSHOT + 1.1.5-SNAPSHOT Semantics3 Java Library http://maven.apache.org From b3e411ed88e4ccb3f10d9503f90c7d18c964b9cd Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Wed, 8 Apr 2015 16:05:37 +0530 Subject: [PATCH 02/66] Update README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 58cfd24..64481bb 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ See https://www.semantics3.com for more information. ```git clone git@github.com:Semantics3/semantics3-java.git``` -* Otherwise, each stable [release](https://github.com/Semantics3/semantics3-java/releases/download/v1.0.2/Sem3Java-1.0.2-SNAPSHOT-jar-with-dependencies.jar) is available as fat jar. +* Otherwise, each stable [release](https://github.com/Semantics3/semantics3-java/releases/download/v1.1.4/Sem3Java-1.1.4-SNAPSHOT-jar-with-dependencies.jar) is available as fat jar. ## Requirements From 19eca0a4b356191dc50afee6e3c95a50ee30453d Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Wed, 8 Apr 2015 16:21:09 +0530 Subject: [PATCH 03/66] Make runQuery a public method --- src/main/java/com/semantics3/api/Semantics3Request.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/semantics3/api/Semantics3Request.java b/src/main/java/com/semantics3/api/Semantics3Request.java index 6e1d268..e4f26eb 100644 --- a/src/main/java/com/semantics3/api/Semantics3Request.java +++ b/src/main/java/com/semantics3/api/Semantics3Request.java @@ -217,7 +217,7 @@ protected void runQuery(String endpoint) throws } } - protected JSONObject runQuery(String endpoint, String method, HashMap params) throws + public JSONObject runQuery(String endpoint, String method, HashMap params) throws OAuthMessageSignerException, OAuthExpectationFailedException, OAuthCommunicationException, From b321be578dfbbf71ca03c7ace66fa9b20d09410e Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Wed, 8 Apr 2015 16:23:13 +0530 Subject: [PATCH 04/66] Bump Version --- README.md | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 64481bb..632733c 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ See https://www.semantics3.com for more information. ```git clone git@github.com:Semantics3/semantics3-java.git``` -* Otherwise, each stable [release](https://github.com/Semantics3/semantics3-java/releases/download/v1.1.4/Sem3Java-1.1.4-SNAPSHOT-jar-with-dependencies.jar) is available as fat jar. +* Otherwise, each stable [release](https://github.com/Semantics3/semantics3-java/releases/download/v1.1.5/Sem3Java-1.1.5-SNAPSHOT-jar-with-dependencies.jar) is available as fat jar. ## Requirements diff --git a/pom.xml b/pom.xml index c9ba464..cbbfd45 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.semantics3 Sem3Java - 1.1.5-SNAPSHOT + 1.1.6-SNAPSHOT Semantics3 Java Library http://maven.apache.org From 6c5b456a694a390aa6099b886c1fdb9532f5f8c9 Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Thu, 9 Apr 2015 14:17:35 +0530 Subject: [PATCH 05/66] Set releaseProfile --- pom.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index cbbfd45..72c45b6 100644 --- a/pom.xml +++ b/pom.xml @@ -32,8 +32,11 @@ org.apache.maven.plugins maven-release-plugin - 2.2.2 + 2.5 + true + false + release deploy -Dmaven.test.skip=true -Dgpg.passphrase=${gpg.passphrase} From baad438f3afd0d91b62e6743f3e7999dce66b1d4 Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Thu, 9 Apr 2015 14:18:06 +0530 Subject: [PATCH 06/66] [maven-release-plugin] prepare release Sem3Java-1.1.6 --- pom.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 72c45b6..8821cf1 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.semantics3 Sem3Java - 1.1.6-SNAPSHOT + 1.1.6 Semantics3 Java Library http://maven.apache.org @@ -108,7 +108,8 @@ scm:git:git://github.com/Semantics3/semantics3-java.git scm:git:git@github.com:Semantics3/semantics3-java.git https://github.com/Semantics3/semantics3-java - + Sem3Java-1.1.6 + sonatype-nexus-snapshots From 3979e20f688571cd0b443400f52639820b76efaf Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Thu, 9 Apr 2015 14:18:13 +0530 Subject: [PATCH 07/66] [maven-release-plugin] prepare for next development iteration --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 8821cf1..bb6a5b7 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.semantics3 Sem3Java - 1.1.6 + 1.1.7-SNAPSHOT Semantics3 Java Library http://maven.apache.org @@ -108,7 +108,7 @@ scm:git:git://github.com/Semantics3/semantics3-java.git scm:git:git@github.com:Semantics3/semantics3-java.git https://github.com/Semantics3/semantics3-java - Sem3Java-1.1.6 + HEAD From 998fd29ccb96a81a5764023c43ffdc550d75e566 Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Thu, 9 Apr 2015 14:27:29 +0530 Subject: [PATCH 08/66] [maven-release-plugin] prepare release Sem3Java-1.1.7 --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index bb6a5b7..82925ac 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.semantics3 Sem3Java - 1.1.7-SNAPSHOT + 1.1.7 Semantics3 Java Library http://maven.apache.org @@ -108,7 +108,7 @@ scm:git:git://github.com/Semantics3/semantics3-java.git scm:git:git@github.com:Semantics3/semantics3-java.git https://github.com/Semantics3/semantics3-java - HEAD + Sem3Java-1.1.7 From 39f0d758e1bf8a301265375b33711d38959fe3b2 Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Thu, 9 Apr 2015 14:27:37 +0530 Subject: [PATCH 09/66] [maven-release-plugin] prepare for next development iteration --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 82925ac..d11a0c2 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.semantics3 Sem3Java - 1.1.7 + 1.1.8-SNAPSHOT Semantics3 Java Library http://maven.apache.org @@ -108,7 +108,7 @@ scm:git:git://github.com/Semantics3/semantics3-java.git scm:git:git@github.com:Semantics3/semantics3-java.git https://github.com/Semantics3/semantics3-java - Sem3Java-1.1.7 + HEAD From 67d9c7fa4a0099deda2e253ea1ec77fd13e0040f Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Thu, 9 Apr 2015 14:46:12 +0530 Subject: [PATCH 10/66] Make pom.xml compatible for Sync --- pom.xml | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index d11a0c2..510fc48 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,38 @@ Sem3Java 1.1.8-SNAPSHOT Semantics3 Java Library - http://maven.apache.org + https://github.com/Semantics3/semantics3-java + Java bindings for Semantics3 API + + https://github.com/Semantics3/semantics3-java/issues + GitHub Issues + + + + MIT License + http://www.opensource.org/licenses/mit-license.php + repo + + + + + abishek@semantics3.com + Abishek Bhat + https://github.com/abishekk92 + abishekk92 + + + asmit@semantics3.com + Asmit Kumar + https://github.com/asmitkumar + asmitkumar + + + Shawn Tan + https://github.com/shawntan + shawntan + + From 24031b926872ae90082a253016e9795565a700f8 Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Thu, 9 Apr 2015 14:53:09 +0530 Subject: [PATCH 11/66] [maven-release-plugin] prepare release Sem3Java-1.1.8 --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 510fc48..6b97890 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.semantics3 Sem3Java - 1.1.8-SNAPSHOT + 1.1.8 Semantics3 Java Library https://github.com/Semantics3/semantics3-java Java bindings for Semantics3 API @@ -139,7 +139,7 @@ scm:git:git://github.com/Semantics3/semantics3-java.git scm:git:git@github.com:Semantics3/semantics3-java.git https://github.com/Semantics3/semantics3-java - HEAD + Sem3Java-1.1.8 From 1fe9c1b7f0429efe25ad5202f79c8b60809e779d Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Thu, 9 Apr 2015 14:53:16 +0530 Subject: [PATCH 12/66] [maven-release-plugin] prepare for next development iteration --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 6b97890..5e46ad9 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.semantics3 Sem3Java - 1.1.8 + 1.1.9-SNAPSHOT Semantics3 Java Library https://github.com/Semantics3/semantics3-java Java bindings for Semantics3 API @@ -139,7 +139,7 @@ scm:git:git://github.com/Semantics3/semantics3-java.git scm:git:git@github.com:Semantics3/semantics3-java.git https://github.com/Semantics3/semantics3-java - Sem3Java-1.1.8 + HEAD From 559b823051d409c7bd60b0d4ef5976fd2bb28ae2 Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Thu, 9 Apr 2015 15:19:44 +0530 Subject: [PATCH 13/66] Adding source plugin --- pom.xml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pom.xml b/pom.xml index 5e46ad9..7a9a8e5 100644 --- a/pom.xml +++ b/pom.xml @@ -83,6 +83,18 @@ true + + org.apache.maven.plugins + maven-source-plugin + + + attach-sources + + jar + + + + From c2025641609ca78b59fc710b1fb3257eca5b19ef Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Thu, 9 Apr 2015 15:20:09 +0530 Subject: [PATCH 14/66] [maven-release-plugin] prepare release Sem3Java-1.1.9 --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 7a9a8e5..337c120 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.semantics3 Sem3Java - 1.1.9-SNAPSHOT + 1.1.9 Semantics3 Java Library https://github.com/Semantics3/semantics3-java Java bindings for Semantics3 API @@ -151,7 +151,7 @@ scm:git:git://github.com/Semantics3/semantics3-java.git scm:git:git@github.com:Semantics3/semantics3-java.git https://github.com/Semantics3/semantics3-java - HEAD + Sem3Java-1.1.9 From fd11fd0d59e2f4b72359c0afa95ae3e0bcbb8581 Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Thu, 9 Apr 2015 15:20:17 +0530 Subject: [PATCH 15/66] [maven-release-plugin] prepare for next development iteration --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 337c120..2da3021 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.semantics3 Sem3Java - 1.1.9 + 1.1.10-SNAPSHOT Semantics3 Java Library https://github.com/Semantics3/semantics3-java Java bindings for Semantics3 API @@ -151,7 +151,7 @@ scm:git:git://github.com/Semantics3/semantics3-java.git scm:git:git@github.com:Semantics3/semantics3-java.git https://github.com/Semantics3/semantics3-java - Sem3Java-1.1.9 + HEAD From 2c2a7236078b8a96853ced44c3be239f849020fd Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Thu, 9 Apr 2015 15:23:55 +0530 Subject: [PATCH 16/66] Add JavaDoc Plugin --- pom.xml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pom.xml b/pom.xml index 2da3021..ed538ba 100644 --- a/pom.xml +++ b/pom.xml @@ -95,6 +95,18 @@ + + org.apache.maven.plugins + maven-javadoc-plugin + + + attach-javadocs + + jar + + + + From f4781834ca4c75cee965ffb4412b7f994ae28f9b Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Thu, 9 Apr 2015 15:24:38 +0530 Subject: [PATCH 17/66] [maven-release-plugin] prepare release Sem3Java-1.1.10 --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index ed538ba..763dbb1 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.semantics3 Sem3Java - 1.1.10-SNAPSHOT + 1.1.10 Semantics3 Java Library https://github.com/Semantics3/semantics3-java Java bindings for Semantics3 API @@ -163,7 +163,7 @@ scm:git:git://github.com/Semantics3/semantics3-java.git scm:git:git@github.com:Semantics3/semantics3-java.git https://github.com/Semantics3/semantics3-java - HEAD + Sem3Java-1.1.10 From ce4cdc5350dd9b37f7e883aca7c91aa55e39cb40 Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Thu, 9 Apr 2015 15:24:47 +0530 Subject: [PATCH 18/66] [maven-release-plugin] prepare for next development iteration --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 763dbb1..3875078 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.semantics3 Sem3Java - 1.1.10 + 1.1.11-SNAPSHOT Semantics3 Java Library https://github.com/Semantics3/semantics3-java Java bindings for Semantics3 API @@ -163,7 +163,7 @@ scm:git:git://github.com/Semantics3/semantics3-java.git scm:git:git@github.com:Semantics3/semantics3-java.git https://github.com/Semantics3/semantics3-java - Sem3Java-1.1.10 + HEAD From c948ca428b2c68e3f5443a572c6e8d94a49629aa Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Thu, 9 Apr 2015 15:36:22 +0530 Subject: [PATCH 19/66] Remove packaging plugin --- pom.xml | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/pom.xml b/pom.xml index 3875078..139643b 100644 --- a/pom.xml +++ b/pom.xml @@ -40,26 +40,6 @@ - - org.apache.maven.plugins - maven-assembly-plugin - 2.2.1 - - - jar-with-dependencies - - - - - - assemble-all - package - - single - - - - org.apache.maven.plugins maven-release-plugin From 5b8659dd1e721e925e0f2df2463e63d1dcd8a500 Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Thu, 9 Apr 2015 15:37:01 +0530 Subject: [PATCH 20/66] [maven-release-plugin] prepare release Sem3Java-1.1.11 --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 139643b..d0156a7 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.semantics3 Sem3Java - 1.1.11-SNAPSHOT + 1.1.11 Semantics3 Java Library https://github.com/Semantics3/semantics3-java Java bindings for Semantics3 API @@ -143,7 +143,7 @@ scm:git:git://github.com/Semantics3/semantics3-java.git scm:git:git@github.com:Semantics3/semantics3-java.git https://github.com/Semantics3/semantics3-java - HEAD + Sem3Java-1.1.11 From dc6d4786c5d7d4b5e36210352a584cfa291688ca Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Thu, 9 Apr 2015 15:37:09 +0530 Subject: [PATCH 21/66] [maven-release-plugin] prepare for next development iteration --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index d0156a7..0382a43 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.semantics3 Sem3Java - 1.1.11 + 1.1.12-SNAPSHOT Semantics3 Java Library https://github.com/Semantics3/semantics3-java Java bindings for Semantics3 API @@ -143,7 +143,7 @@ scm:git:git://github.com/Semantics3/semantics3-java.git scm:git:git@github.com:Semantics3/semantics3-java.git https://github.com/Semantics3/semantics3-java - Sem3Java-1.1.11 + HEAD From 19c14d8f654a63990b95a87216ce8423919b1195 Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Thu, 9 Apr 2015 16:55:31 +0530 Subject: [PATCH 22/66] [maven-release-plugin] prepare release Sem3Java-1.1.12 --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 0382a43..5bc24d0 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.semantics3 Sem3Java - 1.1.12-SNAPSHOT + 1.1.12 Semantics3 Java Library https://github.com/Semantics3/semantics3-java Java bindings for Semantics3 API @@ -143,7 +143,7 @@ scm:git:git://github.com/Semantics3/semantics3-java.git scm:git:git@github.com:Semantics3/semantics3-java.git https://github.com/Semantics3/semantics3-java - HEAD + Sem3Java-1.1.12 From b4f36adbbe1480adb335c64feae3a7873ebce717 Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Thu, 9 Apr 2015 16:55:39 +0530 Subject: [PATCH 23/66] [maven-release-plugin] prepare for next development iteration --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 5bc24d0..e7f2800 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.semantics3 Sem3Java - 1.1.12 + 1.1.13-SNAPSHOT Semantics3 Java Library https://github.com/Semantics3/semantics3-java Java bindings for Semantics3 API @@ -143,7 +143,7 @@ scm:git:git://github.com/Semantics3/semantics3-java.git scm:git:git@github.com:Semantics3/semantics3-java.git https://github.com/Semantics3/semantics3-java - Sem3Java-1.1.12 + HEAD From 26852f6fa421f7b9f13b943362394e2633bd0965 Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Thu, 9 Apr 2015 17:00:20 +0530 Subject: [PATCH 24/66] Set autoRelaseAfterClose to false --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index e7f2800..5424712 100644 --- a/pom.xml +++ b/pom.xml @@ -60,7 +60,7 @@ ossrh https://oss.sonatype.org/ - true + false From 7e2e93d7adc94149a06a8238f2a7484b5a14bc43 Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Thu, 9 Apr 2015 17:01:40 +0530 Subject: [PATCH 25/66] [maven-release-plugin] prepare release Sem3Java-1.1.13 --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 5424712..d4d1b42 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.semantics3 Sem3Java - 1.1.13-SNAPSHOT + 1.1.13 Semantics3 Java Library https://github.com/Semantics3/semantics3-java Java bindings for Semantics3 API @@ -143,7 +143,7 @@ scm:git:git://github.com/Semantics3/semantics3-java.git scm:git:git@github.com:Semantics3/semantics3-java.git https://github.com/Semantics3/semantics3-java - HEAD + Sem3Java-1.1.13 From 37fb4e1edd712ae2872dc63a58e7381ea30a3ea0 Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Thu, 9 Apr 2015 17:01:47 +0530 Subject: [PATCH 26/66] [maven-release-plugin] prepare for next development iteration --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index d4d1b42..612da95 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.semantics3 Sem3Java - 1.1.13 + 1.1.14-SNAPSHOT Semantics3 Java Library https://github.com/Semantics3/semantics3-java Java bindings for Semantics3 API @@ -143,7 +143,7 @@ scm:git:git://github.com/Semantics3/semantics3-java.git scm:git:git@github.com:Semantics3/semantics3-java.git https://github.com/Semantics3/semantics3-java - Sem3Java-1.1.13 + HEAD From fbc42525eb2548616293019076d0918c58fc837f Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Thu, 9 Apr 2015 17:18:53 +0530 Subject: [PATCH 27/66] [maven-release-plugin] prepare release Sem3Java-1.1.14 --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 612da95..b3578ac 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.semantics3 Sem3Java - 1.1.14-SNAPSHOT + 1.1.14 Semantics3 Java Library https://github.com/Semantics3/semantics3-java Java bindings for Semantics3 API @@ -143,7 +143,7 @@ scm:git:git://github.com/Semantics3/semantics3-java.git scm:git:git@github.com:Semantics3/semantics3-java.git https://github.com/Semantics3/semantics3-java - HEAD + Sem3Java-1.1.14 From 4f6c9aca281b5bc6eec3f09582480057a8990edb Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Thu, 9 Apr 2015 17:19:01 +0530 Subject: [PATCH 28/66] [maven-release-plugin] prepare for next development iteration --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index b3578ac..73dd784 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.semantics3 Sem3Java - 1.1.14 + 1.1.15-SNAPSHOT Semantics3 Java Library https://github.com/Semantics3/semantics3-java Java bindings for Semantics3 API @@ -143,7 +143,7 @@ scm:git:git://github.com/Semantics3/semantics3-java.git scm:git:git@github.com:Semantics3/semantics3-java.git https://github.com/Semantics3/semantics3-java - Sem3Java-1.1.14 + HEAD From b7d77e6c0c388f2ca086e8fc1183bca82fa909c9 Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Thu, 9 Apr 2015 17:23:25 +0530 Subject: [PATCH 29/66] Remove gpg argument --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 73dd784..31abad9 100644 --- a/pom.xml +++ b/pom.xml @@ -49,7 +49,7 @@ false release deploy -Dmaven.test.skip=true - -Dgpg.passphrase=${gpg.passphrase} + From c3e5c372a0b3b3bc908e717442b25be18d1ae65a Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Thu, 9 Apr 2015 17:26:38 +0530 Subject: [PATCH 30/66] [maven-release-plugin] prepare release Sem3Java-1.1.15 --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 31abad9..abf0b51 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.semantics3 Sem3Java - 1.1.15-SNAPSHOT + 1.1.15 Semantics3 Java Library https://github.com/Semantics3/semantics3-java Java bindings for Semantics3 API @@ -143,7 +143,7 @@ scm:git:git://github.com/Semantics3/semantics3-java.git scm:git:git@github.com:Semantics3/semantics3-java.git https://github.com/Semantics3/semantics3-java - HEAD + Sem3Java-1.1.15 From 2460f6acd24f2b0635ddaceef7961b2b5c145b4f Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Thu, 9 Apr 2015 17:26:45 +0530 Subject: [PATCH 31/66] [maven-release-plugin] prepare for next development iteration --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index abf0b51..135c6fc 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.semantics3 Sem3Java - 1.1.15 + 1.1.16-SNAPSHOT Semantics3 Java Library https://github.com/Semantics3/semantics3-java Java bindings for Semantics3 API @@ -143,7 +143,7 @@ scm:git:git://github.com/Semantics3/semantics3-java.git scm:git:git@github.com:Semantics3/semantics3-java.git https://github.com/Semantics3/semantics3-java - Sem3Java-1.1.15 + HEAD From 432abf86c9a16c089691d176ec435c907ca65930 Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Fri, 10 Apr 2015 14:39:06 +0530 Subject: [PATCH 32/66] Remove Profiles and move gpg sign into plugins section. --- pom.xml | 56 +++++++++++++++++++++----------------------------------- 1 file changed, 21 insertions(+), 35 deletions(-) diff --git a/pom.xml b/pom.xml index 135c6fc..e664545 100644 --- a/pom.xml +++ b/pom.xml @@ -1,5 +1,6 @@ - + 4.0.0 com.semantics3 @@ -87,6 +88,23 @@ + + org.apache.maven.plugins + maven-gpg-plugin + 1.4 + + ${gpg.passphrase} + + + + sign-artifacts + verify + + sign + + + + @@ -107,44 +125,12 @@ 1.10 - - - release-sign-artifacts - - - performRelease - true - - - - - - org.apache.maven.plugins - maven-gpg-plugin - 1.4 - - ${gpg.passphrase} - - - - sign-artifacts - verify - - sign - - - - - - - - scm:git:git://github.com/Semantics3/semantics3-java.git scm:git:git@github.com:Semantics3/semantics3-java.git https://github.com/Semantics3/semantics3-java - HEAD - + HEAD + sonatype-nexus-snapshots From 5aff85dcbb1757136320d18e8a40e08af77f4ff5 Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Fri, 10 Apr 2015 14:39:37 +0530 Subject: [PATCH 33/66] [maven-release-plugin] prepare release Sem3Java-1.1.16 --- pom.xml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index e664545..e093694 100644 --- a/pom.xml +++ b/pom.xml @@ -1,11 +1,10 @@ - + 4.0.0 com.semantics3 Sem3Java - 1.1.16-SNAPSHOT + 1.1.16 Semantics3 Java Library https://github.com/Semantics3/semantics3-java Java bindings for Semantics3 API @@ -129,7 +128,7 @@ scm:git:git://github.com/Semantics3/semantics3-java.git scm:git:git@github.com:Semantics3/semantics3-java.git https://github.com/Semantics3/semantics3-java - HEAD + Sem3Java-1.1.16 From ae6a9652d227ba1ebe610ab692ebd801278872ce Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Fri, 10 Apr 2015 14:39:46 +0530 Subject: [PATCH 34/66] [maven-release-plugin] prepare for next development iteration --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index e093694..fe0d6a7 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.semantics3 Sem3Java - 1.1.16 + 1.1.17-SNAPSHOT Semantics3 Java Library https://github.com/Semantics3/semantics3-java Java bindings for Semantics3 API @@ -128,7 +128,7 @@ scm:git:git://github.com/Semantics3/semantics3-java.git scm:git:git@github.com:Semantics3/semantics3-java.git https://github.com/Semantics3/semantics3-java - Sem3Java-1.1.16 + HEAD From 1dfa92c6230f24e490b24b4b4ca73b18be37000c Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Fri, 10 Apr 2015 14:46:14 +0530 Subject: [PATCH 35/66] Set autoReleaseClose to true --- pom.xml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index fe0d6a7..7236801 100644 --- a/pom.xml +++ b/pom.xml @@ -49,7 +49,6 @@ false release deploy -Dmaven.test.skip=true - @@ -60,7 +59,7 @@ ossrh https://oss.sonatype.org/ - false + true From 19c2a55cdf48f444a8e49b527022eae4eb5a32e3 Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Fri, 10 Apr 2015 14:46:49 +0530 Subject: [PATCH 36/66] [maven-release-plugin] prepare release Sem3Java-1.1.17 --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 7236801..3e9e8af 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.semantics3 Sem3Java - 1.1.17-SNAPSHOT + 1.1.17 Semantics3 Java Library https://github.com/Semantics3/semantics3-java Java bindings for Semantics3 API @@ -127,7 +127,7 @@ scm:git:git://github.com/Semantics3/semantics3-java.git scm:git:git@github.com:Semantics3/semantics3-java.git https://github.com/Semantics3/semantics3-java - HEAD + Sem3Java-1.1.17 From 9ef2c3046025038d18e8967f9bf477738c5cd9b7 Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Fri, 10 Apr 2015 14:46:56 +0530 Subject: [PATCH 37/66] [maven-release-plugin] prepare for next development iteration --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 3e9e8af..2a8efbb 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.semantics3 Sem3Java - 1.1.17 + 1.1.18-SNAPSHOT Semantics3 Java Library https://github.com/Semantics3/semantics3-java Java bindings for Semantics3 API @@ -127,7 +127,7 @@ scm:git:git://github.com/Semantics3/semantics3-java.git scm:git:git@github.com:Semantics3/semantics3-java.git https://github.com/Semantics3/semantics3-java - Sem3Java-1.1.17 + HEAD From 045614c9e53652e7fea9b1be7afc7b0ff47d2da1 Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Fri, 10 Apr 2015 15:02:36 +0530 Subject: [PATCH 38/66] Add packaging --- README.md | 2 +- pom.xml | 23 ++++++++++++++++++++++- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 632733c..be47c9d 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ See https://www.semantics3.com for more information. ```git clone git@github.com:Semantics3/semantics3-java.git``` -* Otherwise, each stable [release](https://github.com/Semantics3/semantics3-java/releases/download/v1.1.5/Sem3Java-1.1.5-SNAPSHOT-jar-with-dependencies.jar) is available as fat jar. +* Otherwise, each stable [release](https://github.com/Semantics3/semantics3-java/releases/download/v1.2.0/Sem3Java-1.2.0-SNAPSHOT-jar-with-dependencies.jar) is available as fat jar. ## Requirements diff --git a/pom.xml b/pom.xml index 2a8efbb..7fa5810 100644 --- a/pom.xml +++ b/pom.xml @@ -1,5 +1,6 @@ - + 4.0.0 com.semantics3 @@ -103,6 +104,26 @@ + + org.apache.maven.plugins + maven-assembly-plugin + 2.2.1 + + + jar-with-dependencies + + + + + + assemble-all + package + + single + + + + From d03caaed2dfaded12ab158553b09d505983163f8 Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Fri, 10 Apr 2015 15:03:34 +0530 Subject: [PATCH 39/66] [maven-release-plugin] prepare release Sem3Java-1.2.0 --- pom.xml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 7fa5810..089cfb5 100644 --- a/pom.xml +++ b/pom.xml @@ -1,11 +1,10 @@ - + 4.0.0 com.semantics3 Sem3Java - 1.1.18-SNAPSHOT + 1.2.0 Semantics3 Java Library https://github.com/Semantics3/semantics3-java Java bindings for Semantics3 API @@ -148,7 +147,7 @@ scm:git:git://github.com/Semantics3/semantics3-java.git scm:git:git@github.com:Semantics3/semantics3-java.git https://github.com/Semantics3/semantics3-java - HEAD + Sem3Java-1.2.0 From 4ef887c512524e4ea45b26360339eaab2624ff34 Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Fri, 10 Apr 2015 15:03:42 +0530 Subject: [PATCH 40/66] [maven-release-plugin] prepare for next development iteration --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 089cfb5..ddb000a 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.semantics3 Sem3Java - 1.2.0 + 1.2.1-SNAPSHOT Semantics3 Java Library https://github.com/Semantics3/semantics3-java Java bindings for Semantics3 API @@ -147,7 +147,7 @@ scm:git:git://github.com/Semantics3/semantics3-java.git scm:git:git@github.com:Semantics3/semantics3-java.git https://github.com/Semantics3/semantics3-java - Sem3Java-1.2.0 + HEAD From 31b851ddc41299610b0ca3de758736361366575f Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Fri, 10 Apr 2015 15:05:59 +0530 Subject: [PATCH 41/66] [maven-release-plugin] prepare release Sem3Java-1.2.1 --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index ddb000a..64460ba 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.semantics3 Sem3Java - 1.2.1-SNAPSHOT + 1.2.1 Semantics3 Java Library https://github.com/Semantics3/semantics3-java Java bindings for Semantics3 API @@ -147,7 +147,7 @@ scm:git:git://github.com/Semantics3/semantics3-java.git scm:git:git@github.com:Semantics3/semantics3-java.git https://github.com/Semantics3/semantics3-java - HEAD + Sem3Java-1.2.1 From 02d8c5ca119d5ab0afc10108eebf9426151b74f8 Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Fri, 10 Apr 2015 15:06:07 +0530 Subject: [PATCH 42/66] [maven-release-plugin] prepare for next development iteration --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 64460ba..a25cfdb 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.semantics3 Sem3Java - 1.2.1 + 1.2.2-SNAPSHOT Semantics3 Java Library https://github.com/Semantics3/semantics3-java Java bindings for Semantics3 API @@ -147,7 +147,7 @@ scm:git:git://github.com/Semantics3/semantics3-java.git scm:git:git@github.com:Semantics3/semantics3-java.git https://github.com/Semantics3/semantics3-java - Sem3Java-1.2.1 + HEAD From 66af8b4a73f4ef460d9ba440d2f2138011fb48a4 Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Fri, 10 Apr 2015 15:11:36 +0530 Subject: [PATCH 43/66] Update SNAPSHOT link --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index be47c9d..fd1f1f4 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ See https://www.semantics3.com for more information. ```git clone git@github.com:Semantics3/semantics3-java.git``` -* Otherwise, each stable [release](https://github.com/Semantics3/semantics3-java/releases/download/v1.2.0/Sem3Java-1.2.0-SNAPSHOT-jar-with-dependencies.jar) is available as fat jar. +* Otherwise, each stable [release](https://github.com/Semantics3/semantics3-java/releases/download/v1.2.1/Sem3Java-1.2.1-SNAPSHOT-jar-with-dependencies.jar) is available as fat jar. ## Requirements From cb51b1a89f3920308008df3ddf178ca5f07ceda9 Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Fri, 10 Apr 2015 15:19:37 +0530 Subject: [PATCH 44/66] Update download link --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index fd1f1f4..2a66442 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ See https://www.semantics3.com for more information. ```git clone git@github.com:Semantics3/semantics3-java.git``` -* Otherwise, each stable [release](https://github.com/Semantics3/semantics3-java/releases/download/v1.2.1/Sem3Java-1.2.1-SNAPSHOT-jar-with-dependencies.jar) is available as fat jar. +* Otherwise, each stable [release](https://github.com/Semantics3/semantics3-java/releases/download/Sem3Java-1.2.1/Sem3Java-1.2.1-jar-with-dependencies.jar) is available as fat jar. ## Requirements From 296ddd2bb688369d11236bb88329a27b62afbbd6 Mon Sep 17 00:00:00 2001 From: Asmit Date: Sat, 11 Apr 2015 00:56:57 +0530 Subject: [PATCH 45/66] Update README.md --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2a66442..3f4fcf8 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,18 @@ See https://www.semantics3.com for more information. ```git clone git@github.com:Semantics3/semantics3-java.git``` -* Otherwise, each stable [release](https://github.com/Semantics3/semantics3-java/releases/download/Sem3Java-1.2.1/Sem3Java-1.2.1-jar-with-dependencies.jar) is available as fat jar. +* Each stable [release](https://github.com/Semantics3/semantics3-java/releases/download/Sem3Java-1.2.1/Sem3Java-1.2.1-jar-with-dependencies.jar) is also available as fat jar. +* The Dependencies can also be installed using ```maven``` by putting this in the ```pom.xml``` file. + +``` + + com.semantics3 + Sem3Java + 1.2.1 + + +``` ## Requirements * [signpost-core-1.2.1.2.jar](https://oauth-signpost.googlecode.com/files/signpost-core-1.2.1.2.jar) - OAuth2 implementation From d1df15e1872700da298dfc72bddc6d4e59d9c74d Mon Sep 17 00:00:00 2001 From: Asmit Date: Sat, 11 Apr 2015 00:57:46 +0530 Subject: [PATCH 46/66] Update README.md --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3f4fcf8..2ee2d32 100644 --- a/README.md +++ b/README.md @@ -11,15 +11,14 @@ See https://www.semantics3.com for more information. * Each stable [release](https://github.com/Semantics3/semantics3-java/releases/download/Sem3Java-1.2.1/Sem3Java-1.2.1-jar-with-dependencies.jar) is also available as fat jar. -* The Dependencies can also be installed using ```maven``` by putting this in the ```pom.xml``` file. +* The Dependencies can also be installed using ```maven``` by adding this in the ```pom.xml``` file. ``` - + com.semantics3 Sem3Java 1.2.1 - ``` ## Requirements From fcd8d757fa750413f156825b3d8c009bb7ef4995 Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Sun, 12 Apr 2015 21:16:12 +0530 Subject: [PATCH 47/66] Advertise maven as the go way to use the library. --- README.md | 33 ++++++++++----------------------- 1 file changed, 10 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index 2ee2d32..2672af3 100644 --- a/README.md +++ b/README.md @@ -5,28 +5,15 @@ See https://www.semantics3.com for more information. ## Installation * The JAVA version used for this library is JDK 7. -* To build and install from the latest source: - -```git clone git@github.com:Semantics3/semantics3-java.git``` - -* Each stable [release](https://github.com/Semantics3/semantics3-java/releases/download/Sem3Java-1.2.1/Sem3Java-1.2.1-jar-with-dependencies.jar) is also available as fat jar. - -* The Dependencies can also be installed using ```maven``` by adding this in the ```pom.xml``` file. +* Add the following to your pom.xml +```xml + + com.semantics3 + Sem3Java + 1.2.1 + ``` - - com.semantics3 - Sem3Java - 1.2.1 - -``` - -## Requirements -* [signpost-core-1.2.1.2.jar](https://oauth-signpost.googlecode.com/files/signpost-core-1.2.1.2.jar) - OAuth2 implementation - -* [commons-codec-1.7.jar](http://repo1.maven.org/maven2/commons-codec/commons-codec/1.7/commons-codec-1.7.jar) - Apache Commons Codec library for Base64 implementation - -* JDK >= 6 ## Getting Started @@ -50,7 +37,7 @@ Products products = new Products( ### First Request aka 'Hello World': -Let's make our first Request! We are going to run a simple search fo the word "iPhone" as follows: +Let's make our first Request! We are going to run a simple search for the word "iPhone" as follows: ```java /* Build the Request */ @@ -229,10 +216,10 @@ Use GitHub's standard fork/commit/pull-request cycle. If you have any questions ## Authors -* Shawn Tan - * Asmit Kumar +* Shawn Tan + ## Copyright Copyright (c) 2015 Semantics3 Inc. From fced7a9ce38c4d3cf630e237f21853461d948430 Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Mon, 13 Apr 2015 00:22:38 +0530 Subject: [PATCH 48/66] Add download link for Fat Jar. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 2672af3..7ed9606 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,8 @@ See https://www.semantics3.com for more information. ``` +* For projects which don't use Maven each stable [release](https://github.com/Semantics3/semantics3-java/releases/download/Sem3Java-1.2.1/Sem3Java-1.2.1-jar-with-dependencies.jar) is also available as a fat jar. + ## Getting Started In order to use the client, you must have both an API key and an API secret. To obtain your key and secret, you need to first create an account at From 1e876e541148c0cccd10167df28caf6667ab2f4e Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Mon, 13 Apr 2015 00:26:06 +0530 Subject: [PATCH 49/66] Fix formatting --- README.md | 96 +++++++++++++++++++++++++++---------------------------- 1 file changed, 48 insertions(+), 48 deletions(-) diff --git a/README.md b/README.md index 7ed9606..12bf2fb 100644 --- a/README.md +++ b/README.md @@ -125,76 +125,76 @@ You can use webhooks to get near-real-time price updates from Semantics3. You can register a webhook with Semantics3 by sending a POST request to ```"webhooks"``` endpoint. To verify that your URL is active, a GET request will be sent to your server with a ```verification_code``` parameter. Your server should respond with ```verification_code``` in the response body to complete the verification process. -``` - String apiKey = "SEM3xxxxxxxxxxxxxxxxxxxxxx"; - String apiSecret = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; - String endpoint = "webhooks"; - Semantics3Request request = new Semantics3Request(apiKey, apiSecret, endpoint); - HashMap params = new HashMap(); - params.put("webhook_uri", "http://mydomain.com/webhooks-callback-url"); - JSONObject results = request.runQuery(endpoint, "POST", params); - System.out.println(results.toString(4)); +```java +String apiKey = "SEM3xxxxxxxxxxxxxxxxxxxxxx"; +String apiSecret = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; +String endpoint = "webhooks"; +Semantics3Request request = new Semantics3Request(apiKey, apiSecret, endpoint); +HashMap params = new HashMap(); +params.put("webhook_uri", "http://mydomain.com/webhooks-callback-url"); +JSONObject results = request.runQuery(endpoint, "POST", params); +System.out.println(results.toString(4)); ``` To fetch existing webhooks -``` - String endpoint = "webhooks"; - Semantics3Request request = new Semantics3Request(apiKey, apiSecret, endpoint); - HashMap params = new HashMap(); - JSONObject results = request.runQuery(endpoint, "GET", params); - System.out.println(results.toString(4)); +```java +String endpoint = "webhooks"; +Semantics3Request request = new Semantics3Request(apiKey, apiSecret, endpoint); +HashMap params = new HashMap(); +JSONObject results = request.runQuery(endpoint, "GET", params); +System.out.println(results.toString(4)); ``` To remove a webhook -``` - String webhookId = "7JcGN81u"; - String endpoint = "webhooks/" + webhookId; - Semantics3Request request = new Semantics3Request(apiKey, apiSecret, endpoint); - - HashMap params = new HashMap(); +```java +String webhookId = "7JcGN81u"; +String endpoint = "webhooks/" + webhookId; +Semantics3Request request = new Semantics3Request(apiKey, apiSecret, endpoint); - JSONObject results = request.runQuery(endpoint, "DELETE", params); - System.out.println(results.toString(4)); +HashMap params = new HashMap(); + +JSONObject results = request.runQuery(endpoint, "DELETE", params); +System.out.println(results.toString(4)); ``` ### Registering events Once you register a webhook, you can start adding events to it. Semantics3 server will send you notifications when these events occur. To register events for a specific webhook send a POST request to the ```"webhooks/{webhook_id}/events"``` endpoint -``` - String webhookId = "7JcGN81u"; - String endpoint = "webhooks/" +webhookId+ "/events"; - - Semantics3Request request = new Semantics3Request(apiKey, apiSecret, endpoint); - - HashMap params = new HashMap(); - HashMap product = new HashMap(); - HashMap constraints = new HashMap(); - params.put("type", "price.change"); - product.put("sem3_id", "1QZC8wchX62eCYS2CACmka"); - params.put("product", product); - constraints.put("gte", 10); - constraints.put("lte", 100); - params.put("constraints", constraints); - JSONObject results = request.runQuery(endpoint, "POST", params); - System.out.println(results.toString(4)); +```java +String webhookId = "7JcGN81u"; +String endpoint = "webhooks/" +webhookId+ "/events"; + +Semantics3Request request = new Semantics3Request(apiKey, apiSecret, endpoint); + +HashMap params = new HashMap(); +HashMap product = new HashMap(); +HashMap constraints = new HashMap(); +params.put("type", "price.change"); +product.put("sem3_id", "1QZC8wchX62eCYS2CACmka"); +params.put("product", product); +constraints.put("gte", 10); +constraints.put("lte", 100); +params.put("constraints", constraints); +JSONObject results = request.runQuery(endpoint, "POST", params); +System.out.println(results.toString(4)); ``` To fetch all registered events for a give webhook -``` - String webhookId = "7JcGN81u"; - String endpoint = "webhooks/" +webhookId+ "/events"; - - Semantics3Request request = new Semantics3Request(apiKey, apiSecret, endpoint); - HashMap params = new HashMap(); - JSONObject results = request.runQuery(endpoint, "GET", params); +```java +String webhookId = "7JcGN81u"; +String endpoint = "webhooks/" +webhookId+ "/events"; + +Semantics3Request request = new Semantics3Request(apiKey, apiSecret, endpoint); +HashMap params = new HashMap(); +JSONObject results = request.runQuery(endpoint, "GET", params); ``` ## Webhook Notifications Once you have created a webhook and registered events on it, notifications will be sent to your registered webhook URI via a POST request when the corresponding events occur. Make sure that your server can accept POST requests. Here is how a sample notification object looks like -``` +```json { "type": "price.change", "event_id": "XyZgOZ5q", From e43073db941f6d24f14b3792d143663e832e5afb Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Tue, 16 Jun 2015 12:35:29 +0530 Subject: [PATCH 50/66] Fix for SKUS API. --- README.md | 2 +- .../com/semantics3/api/Semantics3Request.java | 24 ++++++++++++++++--- .../java/com/semantics3/api/ProductsTest.java | 12 ++++++++++ .../semantics3/api/Semantics3RequestTest.java | 6 ++--- src/test/resources/api.config.sample | 2 ++ 5 files changed, 39 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 12bf2fb..9cef60f 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ See https://www.semantics3.com for more information. com.semantics3 Sem3Java - 1.2.1 + 1.2.2 ``` diff --git a/src/main/java/com/semantics3/api/Semantics3Request.java b/src/main/java/com/semantics3/api/Semantics3Request.java index e4f26eb..afe0031 100644 --- a/src/main/java/com/semantics3/api/Semantics3Request.java +++ b/src/main/java/com/semantics3/api/Semantics3Request.java @@ -88,9 +88,19 @@ protected JSONObject fetch(String endpoint, String params) throws request.setRequestProperty("User-Agent", "Semantics3 Java Library"); consumer.sign(request); request.connect(); - JSONObject json = new JSONObject(new JSONTokener(request.getInputStream())); - - return json; + try { + JSONObject json = new JSONObject(new JSONTokener(request.getInputStream())); + if (!json.has("code")){ + json.put("code", "OK"); + } + return json; + } + catch (IOException e) { + InputStream error = ((HttpURLConnection) request).getErrorStream(); + JSONObject json = new JSONObject(new JSONTokener(error)); + json.put("code", "Error"); + return json; + } } protected JSONObject fetch(String endpoint, String method, HashMap params) throws @@ -222,7 +232,15 @@ public JSONObject runQuery(String endpoint, String method, HashMap 0, is(true)); } + + @Test + public void TestSKUQuery() throws OAuthExpectationFailedException, OAuthCommunicationException, OAuthMessageSignerException, IOException { + Properties property = TestUtils.getConfig("api.config"); + Semantics3Request semantics3Request = new Semantics3Request(property.get("SKU_API_KEY").toString(), property.get("SKU_API_SECRET").toString()); + HashMap params = new HashMap(); + params.put("site", "abercrombie.com"); + JSONObject jsonObject = semantics3Request.runQuery("skus", "GET", params); + JSONArray resultsArray = (JSONArray) jsonObject.get("results"); + assertThat(resultsArray.length() > 0, is(true)); + } } diff --git a/src/test/java/com/semantics3/api/Semantics3RequestTest.java b/src/test/java/com/semantics3/api/Semantics3RequestTest.java index 6888c70..a08cdeb 100644 --- a/src/test/java/com/semantics3/api/Semantics3RequestTest.java +++ b/src/test/java/com/semantics3/api/Semantics3RequestTest.java @@ -4,7 +4,6 @@ import oauth.signpost.exception.OAuthCommunicationException; import oauth.signpost.exception.OAuthExpectationFailedException; import oauth.signpost.exception.OAuthMessageSignerException; -import org.hamcrest.CoreMatchers; import org.json.JSONArray; import org.json.JSONObject; import org.junit.Test; @@ -13,6 +12,7 @@ import java.util.HashMap; import java.util.Properties; +import static junit.framework.Assert.assertTrue; import static org.hamcrest.CoreMatchers.anything; import static org.hamcrest.CoreMatchers.equalTo; import static org.hamcrest.MatcherAssert.assertThat; @@ -26,7 +26,7 @@ public void testRunQueryPost() throws IOException, OAuthCommunicationException, Properties property = TestUtils.getConfig("api.config"); Semantics3Request sem3 = new Semantics3Request(property.get("API_KEY").toString(), property.get("API_SECRET").toString()); HashMap params = new HashMap(); - params.put("webhook_uri", "http://148.251.44.168:5000"); + params.put("webhook_uri", " http://sem3-webhooks-verification.ngrok.com"); try { JSONObject result = sem3.runQuery("webhooks", "POST", params); assertThat(result.getString("code"), equalTo("OK")); @@ -42,7 +42,7 @@ public void testRunQueryGet() throws IOException, OAuthCommunicationException, O Semantics3Request sem3 = new Semantics3Request(property.get("API_KEY").toString(), property.get("API_SECRET").toString()); HashMap params = new HashMap(); JSONObject result = sem3.runQuery("webhooks", "GET", params); - assertThat(result.getJSONArray("data").length(), CoreMatchers.anyOf(equalTo(0), equalTo(1))); + assertTrue(result.getJSONArray("data").length() > 0); } diff --git a/src/test/resources/api.config.sample b/src/test/resources/api.config.sample index 2f16042..a0a986b 100644 --- a/src/test/resources/api.config.sample +++ b/src/test/resources/api.config.sample @@ -1,2 +1,4 @@ API_KEY= API_SECRET= +SKU_API_KEY= +SKU_API_SECRET= From 2ead0790b68eafeba95e25b48748a31ad3f192cb Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Tue, 16 Jun 2015 12:38:28 +0530 Subject: [PATCH 51/66] [maven-release-plugin] prepare release Sem3Java-1.2.2 --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index a25cfdb..3b98c0c 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.semantics3 Sem3Java - 1.2.2-SNAPSHOT + 1.2.2 Semantics3 Java Library https://github.com/Semantics3/semantics3-java Java bindings for Semantics3 API @@ -147,7 +147,7 @@ scm:git:git://github.com/Semantics3/semantics3-java.git scm:git:git@github.com:Semantics3/semantics3-java.git https://github.com/Semantics3/semantics3-java - HEAD + Sem3Java-1.2.2 From a399a9d73d0d54d309879b650f7d0114c024f3a8 Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Tue, 16 Jun 2015 12:38:37 +0530 Subject: [PATCH 52/66] [maven-release-plugin] prepare for next development iteration --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 3b98c0c..e25a173 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.semantics3 Sem3Java - 1.2.2 + 1.2.3-SNAPSHOT Semantics3 Java Library https://github.com/Semantics3/semantics3-java Java bindings for Semantics3 API @@ -147,7 +147,7 @@ scm:git:git://github.com/Semantics3/semantics3-java.git scm:git:git@github.com:Semantics3/semantics3-java.git https://github.com/Semantics3/semantics3-java - Sem3Java-1.2.2 + HEAD From 7f6233b4663c96a19836ca389ace6c39234f52ad Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Tue, 16 Jun 2015 12:50:19 +0530 Subject: [PATCH 53/66] Update FAT Jar Link. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9cef60f..0807ba2 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ See https://www.semantics3.com for more information. ``` -* For projects which don't use Maven each stable [release](https://github.com/Semantics3/semantics3-java/releases/download/Sem3Java-1.2.1/Sem3Java-1.2.1-jar-with-dependencies.jar) is also available as a fat jar. +* For projects which don't use Maven each stable [release](https://github.com/Semantics3/semantics3-java/releases/download/Sem3Java-1.2.2/Sem3Java-1.2.2-jar-with-dependencies.jar) is also available as a fat jar. ## Getting Started From 0f89dfddf5973c0799362f223207dc8039fe68fd Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Wed, 9 Sep 2015 15:59:29 +0530 Subject: [PATCH 54/66] Fix failing tests cases. --- src/test/java/com/semantics3/api/Semantics3RequestTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/com/semantics3/api/Semantics3RequestTest.java b/src/test/java/com/semantics3/api/Semantics3RequestTest.java index a08cdeb..4c66bdc 100644 --- a/src/test/java/com/semantics3/api/Semantics3RequestTest.java +++ b/src/test/java/com/semantics3/api/Semantics3RequestTest.java @@ -12,7 +12,6 @@ import java.util.HashMap; import java.util.Properties; -import static junit.framework.Assert.assertTrue; import static org.hamcrest.CoreMatchers.anything; import static org.hamcrest.CoreMatchers.equalTo; import static org.hamcrest.MatcherAssert.assertThat; @@ -42,7 +41,7 @@ public void testRunQueryGet() throws IOException, OAuthCommunicationException, O Semantics3Request sem3 = new Semantics3Request(property.get("API_KEY").toString(), property.get("API_SECRET").toString()); HashMap params = new HashMap(); JSONObject result = sem3.runQuery("webhooks", "GET", params); - assertTrue(result.getJSONArray("data").length() > 0); + assertThat(result.getString("code"), equalTo("OK")); } @@ -61,4 +60,5 @@ public void testRunQueryDelete() throws IOException, OAuthCommunicationException assertThat(response.getString("code"), equalTo("OK")); } } + } From ae9d69bb158ad88bb3a2ae79d86d574a01161c4f Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Wed, 9 Sep 2015 15:59:49 +0530 Subject: [PATCH 55/66] Ignore pagination tests. --- .../java/com/semantics3/api/ProductsTest.java | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/src/test/java/com/semantics3/api/ProductsTest.java b/src/test/java/com/semantics3/api/ProductsTest.java index 8de0f4f..4b700ec 100644 --- a/src/test/java/com/semantics3/api/ProductsTest.java +++ b/src/test/java/com/semantics3/api/ProductsTest.java @@ -5,6 +5,7 @@ import oauth.signpost.exception.OAuthMessageSignerException; import org.json.JSONArray; import org.json.JSONObject; +import org.junit.Ignore; import org.junit.Test; import java.io.IOException; @@ -75,11 +76,29 @@ public void TestCategoryIDQuery() throws OAuthExpectationFailedException, OAuthC @Test public void TestSKUQuery() throws OAuthExpectationFailedException, OAuthCommunicationException, OAuthMessageSignerException, IOException { Properties property = TestUtils.getConfig("api.config"); - Semantics3Request semantics3Request = new Semantics3Request(property.get("SKU_API_KEY").toString(), property.get("SKU_API_SECRET").toString()); + Semantics3Request semantics3Request = new Semantics3Request(property.get("API_KEY").toString(), property.get("API_SECRET").toString()); HashMap params = new HashMap(); params.put("site", "abercrombie.com"); JSONObject jsonObject = semantics3Request.runQuery("skus", "GET", params); JSONArray resultsArray = (JSONArray) jsonObject.get("results"); assertThat(resultsArray.length() > 0, is(true)); } + + @Ignore + public void TestPagination() throws IOException, OAuthCommunicationException, OAuthExpectationFailedException, OAuthMessageSignerException { + Properties property = TestUtils.getConfig("api.config"); + Semantics3Request semantics3Request = new Semantics3Request(property.get("API_KEY").toString(), property.get("API_SECRET").toString()); + HashMap params = new HashMap(); + params.put("site", "macys.com"); + JSONObject jsonObject = semantics3Request.runQuery("skus", "GET", params); + while(jsonObject.has("next")){ + JSONObject next = (JSONObject)jsonObject.get("next"); + String page = next.getString("page"); + System.out.println(page); + params.remove("site"); + params.put("page", page); + jsonObject = semantics3Request.runQuery("skus", "GET", params); + System.out.println(jsonObject.toString()); + } + } } From 222f210729f73f32d941605ad25c28540165902c Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Wed, 9 Sep 2015 16:19:51 +0530 Subject: [PATCH 56/66] Normalize URL. --- .../java/com/semantics3/api/Categories.java | 8 ++-- src/main/java/com/semantics3/api/Offers.java | 8 ++-- .../java/com/semantics3/api/Products.java | 13 +++--- .../com/semantics3/api/Semantics3Request.java | 45 ++++++++++--------- .../java/com/semantics3/api/ProductsTest.java | 15 ++++--- .../semantics3/api/Semantics3RequestTest.java | 8 ++-- 6 files changed, 50 insertions(+), 47 deletions(-) diff --git a/src/main/java/com/semantics3/api/Categories.java b/src/main/java/com/semantics3/api/Categories.java index 22ad6aa..3c35149 100644 --- a/src/main/java/com/semantics3/api/Categories.java +++ b/src/main/java/com/semantics3/api/Categories.java @@ -1,13 +1,13 @@ package com.semantics3.api; -import java.io.IOException; - import oauth.signpost.exception.OAuthCommunicationException; import oauth.signpost.exception.OAuthExpectationFailedException; import oauth.signpost.exception.OAuthMessageSignerException; - import org.json.JSONObject; +import java.io.IOException; +import java.net.URISyntaxException; + public class Categories extends Semantics3Request { public Categories(String apiKey, String apiSecret) { @@ -19,7 +19,7 @@ public Categories field(Object... fields) { return this; } - public JSONObject getCategories() throws OAuthMessageSignerException, OAuthExpectationFailedException, OAuthCommunicationException, IOException { + public JSONObject getCategories() throws OAuthMessageSignerException, OAuthExpectationFailedException, OAuthCommunicationException, IOException, URISyntaxException { return this.get(); } diff --git a/src/main/java/com/semantics3/api/Offers.java b/src/main/java/com/semantics3/api/Offers.java index f592351..ba22a5d 100644 --- a/src/main/java/com/semantics3/api/Offers.java +++ b/src/main/java/com/semantics3/api/Offers.java @@ -1,13 +1,13 @@ package com.semantics3.api; -import java.io.IOException; - import oauth.signpost.exception.OAuthCommunicationException; import oauth.signpost.exception.OAuthExpectationFailedException; import oauth.signpost.exception.OAuthMessageSignerException; - import org.json.JSONObject; +import java.io.IOException; +import java.net.URISyntaxException; + public class Offers extends Semantics3Request { public Offers(String apiKey, String apiSecret) { @@ -19,7 +19,7 @@ public Offers field(Object... fields) { return this; } - public JSONObject getOffers() throws OAuthMessageSignerException, OAuthExpectationFailedException, OAuthCommunicationException, IOException { + public JSONObject getOffers() throws OAuthMessageSignerException, OAuthExpectationFailedException, OAuthCommunicationException, IOException, URISyntaxException { return this.get(); } diff --git a/src/main/java/com/semantics3/api/Products.java b/src/main/java/com/semantics3/api/Products.java index a52199e..711c834 100644 --- a/src/main/java/com/semantics3/api/Products.java +++ b/src/main/java/com/semantics3/api/Products.java @@ -1,14 +1,13 @@ package com.semantics3.api; -import java.io.IOException; - +import com.semantics3.Util; import oauth.signpost.exception.OAuthCommunicationException; import oauth.signpost.exception.OAuthExpectationFailedException; import oauth.signpost.exception.OAuthMessageSignerException; - import org.json.JSONObject; -import com.semantics3.Util; +import java.io.IOException; +import java.net.URISyntaxException; public class Products extends Semantics3Request { @@ -17,13 +16,13 @@ public Products(String apiKey, String apiSecret) { // TODO Auto-generated constructor stub } - public JSONObject getProducts() throws OAuthMessageSignerException, OAuthExpectationFailedException, OAuthCommunicationException, IOException { + public JSONObject getProducts() throws OAuthMessageSignerException, OAuthExpectationFailedException, OAuthCommunicationException, IOException, URISyntaxException { return this.get(); } - public JSONObject getOffers() throws OAuthMessageSignerException, OAuthExpectationFailedException, OAuthCommunicationException, IOException { + public JSONObject getOffers() throws OAuthMessageSignerException, OAuthExpectationFailedException, OAuthCommunicationException, IOException, URISyntaxException { return this.get("offers"); } - public JSONObject getCategories() throws OAuthMessageSignerException, OAuthExpectationFailedException, OAuthCommunicationException, IOException { + public JSONObject getCategories() throws OAuthMessageSignerException, OAuthExpectationFailedException, OAuthCommunicationException, IOException, URISyntaxException { return this.get("categories"); } diff --git a/src/main/java/com/semantics3/api/Semantics3Request.java b/src/main/java/com/semantics3/api/Semantics3Request.java index afe0031..c5cce25 100644 --- a/src/main/java/com/semantics3/api/Semantics3Request.java +++ b/src/main/java/com/semantics3/api/Semantics3Request.java @@ -13,6 +13,7 @@ import java.io.InputStream; import java.io.OutputStreamWriter; import java.net.HttpURLConnection; +import java.net.URISyntaxException; import java.net.URL; import java.net.URLEncoder; import java.util.HashMap; @@ -72,10 +73,10 @@ public Semantics3Request(String apiKey, String apiSecret) { } protected JSONObject fetch(String endpoint, String params) throws - OAuthMessageSignerException, - OAuthExpectationFailedException, - OAuthCommunicationException, - IOException { + OAuthMessageSignerException, + OAuthExpectationFailedException, + OAuthCommunicationException, + IOException, URISyntaxException { String req = new StringBuffer() .append(API_BASE) .append(endpoint) @@ -83,7 +84,7 @@ protected JSONObject fetch(String endpoint, String params) throws .append(URLEncoder.encode(params, "UTF-8")) .toString(); URL url = new URL(req); - + url = url.toURI().normalize().toURL(); HttpURLConnection request = (HttpURLConnection) url.openConnection(); request.setRequestProperty("User-Agent", "Semantics3 Java Library"); consumer.sign(request); @@ -107,13 +108,13 @@ protected JSONObject fetch(String endpoint, String method, HashMap params = new HashMap(); @@ -85,7 +86,7 @@ public void TestSKUQuery() throws OAuthExpectationFailedException, OAuthCommunic } @Ignore - public void TestPagination() throws IOException, OAuthCommunicationException, OAuthExpectationFailedException, OAuthMessageSignerException { + public void TestPagination() throws IOException, OAuthCommunicationException, OAuthExpectationFailedException, OAuthMessageSignerException, URISyntaxException { Properties property = TestUtils.getConfig("api.config"); Semantics3Request semantics3Request = new Semantics3Request(property.get("API_KEY").toString(), property.get("API_SECRET").toString()); HashMap params = new HashMap(); diff --git a/src/test/java/com/semantics3/api/Semantics3RequestTest.java b/src/test/java/com/semantics3/api/Semantics3RequestTest.java index 4c66bdc..135dc1f 100644 --- a/src/test/java/com/semantics3/api/Semantics3RequestTest.java +++ b/src/test/java/com/semantics3/api/Semantics3RequestTest.java @@ -9,6 +9,7 @@ import org.junit.Test; import java.io.IOException; +import java.net.URISyntaxException; import java.util.HashMap; import java.util.Properties; @@ -21,7 +22,7 @@ */ public class Semantics3RequestTest { @Test - public void testRunQueryPost() throws IOException, OAuthCommunicationException, OAuthExpectationFailedException, OAuthMessageSignerException { + public void testRunQueryPost() throws IOException, OAuthCommunicationException, OAuthExpectationFailedException, OAuthMessageSignerException, URISyntaxException { Properties property = TestUtils.getConfig("api.config"); Semantics3Request sem3 = new Semantics3Request(property.get("API_KEY").toString(), property.get("API_SECRET").toString()); HashMap params = new HashMap(); @@ -36,7 +37,7 @@ public void testRunQueryPost() throws IOException, OAuthCommunicationException, } @Test - public void testRunQueryGet() throws IOException, OAuthCommunicationException, OAuthExpectationFailedException, OAuthMessageSignerException { + public void testRunQueryGet() throws IOException, OAuthCommunicationException, OAuthExpectationFailedException, OAuthMessageSignerException, URISyntaxException { Properties property = TestUtils.getConfig("api.config"); Semantics3Request sem3 = new Semantics3Request(property.get("API_KEY").toString(), property.get("API_SECRET").toString()); HashMap params = new HashMap(); @@ -46,7 +47,7 @@ public void testRunQueryGet() throws IOException, OAuthCommunicationException, O } @Test - public void testRunQueryDelete() throws IOException, OAuthCommunicationException, OAuthExpectationFailedException, OAuthMessageSignerException { + public void testRunQueryDelete() throws IOException, OAuthCommunicationException, OAuthExpectationFailedException, OAuthMessageSignerException, URISyntaxException { Properties property = TestUtils.getConfig("api.config"); Semantics3Request sem3 = new Semantics3Request(property.get("API_KEY").toString(), property.get("API_SECRET").toString()); HashMap params = new HashMap(); @@ -61,4 +62,5 @@ public void testRunQueryDelete() throws IOException, OAuthCommunicationException } } + } From 42f1cee51ba1e495de9ea5384f00f993fcd20b67 Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Wed, 9 Sep 2015 16:21:45 +0530 Subject: [PATCH 57/66] [maven-release-plugin] prepare release Sem3Java-1.2.3 --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index e25a173..a300dd7 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.semantics3 Sem3Java - 1.2.3-SNAPSHOT + 1.2.3 Semantics3 Java Library https://github.com/Semantics3/semantics3-java Java bindings for Semantics3 API @@ -147,7 +147,7 @@ scm:git:git://github.com/Semantics3/semantics3-java.git scm:git:git@github.com:Semantics3/semantics3-java.git https://github.com/Semantics3/semantics3-java - HEAD + Sem3Java-1.2.3 From 2180bc73114572b1de22ee8d361db9cfa4466bcb Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Wed, 9 Sep 2015 16:21:53 +0530 Subject: [PATCH 58/66] [maven-release-plugin] prepare for next development iteration --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index a300dd7..0542cc3 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.semantics3 Sem3Java - 1.2.3 + 1.2.4-SNAPSHOT Semantics3 Java Library https://github.com/Semantics3/semantics3-java Java bindings for Semantics3 API @@ -147,7 +147,7 @@ scm:git:git://github.com/Semantics3/semantics3-java.git scm:git:git@github.com:Semantics3/semantics3-java.git https://github.com/Semantics3/semantics3-java - Sem3Java-1.2.3 + HEAD From ffd6c00d7cd9a9509696f63c6d4615d3a8d2a615 Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Wed, 9 Sep 2015 16:27:23 +0530 Subject: [PATCH 59/66] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0807ba2..272e441 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ See https://www.semantics3.com for more information. ``` -* For projects which don't use Maven each stable [release](https://github.com/Semantics3/semantics3-java/releases/download/Sem3Java-1.2.2/Sem3Java-1.2.2-jar-with-dependencies.jar) is also available as a fat jar. +* For projects which don't use Maven each stable [release](https://github.com/Semantics3/semantics3-java/releases/download/Sem3Java-1.2.3/Sem3Java-1.2.3-jar-with-dependencies.jar) is also available as a fat jar. ## Getting Started From 30efd6c141897a873f9550a5065480180639ce7a Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Wed, 9 Sep 2015 16:28:40 +0530 Subject: [PATCH 60/66] Update version number in mvn install. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 272e441..69e5764 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ See https://www.semantics3.com for more information. com.semantics3 Sem3Java - 1.2.2 + 1.2.3 ``` From dfdf78a86f75f1c61f92ec28b2a602eb9efc87e8 Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Mon, 16 Nov 2015 19:08:24 +0530 Subject: [PATCH 61/66] Fix failing test case. --- src/test/java/com/semantics3/api/ProductsTest.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/test/java/com/semantics3/api/ProductsTest.java b/src/test/java/com/semantics3/api/ProductsTest.java index c14de75..c195143 100644 --- a/src/test/java/com/semantics3/api/ProductsTest.java +++ b/src/test/java/com/semantics3/api/ProductsTest.java @@ -68,13 +68,7 @@ public void TestCategoryIDQuery() throws OAuthExpectationFailedException, OAuthC Properties property = TestUtils.getConfig("api.config"); Products products = new Products(property.get("API_KEY").toString(), property.get("API_SECRET").toString()); products - .categoriesField("cat_id", 4992); - JSONObject results = products.getCategories(); - JSONArray resultsArray = (JSONArray) results.get("results"); - assertThat(resultsArray.length() > 0, is(true)); - } - - @Test + .categoriesField("cat_id", 4992); JSONObject results = products.getCategories(); JSONArray resultsArray = (JSONArray) results.get("results"); assertThat(resultsArray.length() > 0, is(true)); } @Test public void TestSKUQuery() throws OAuthExpectationFailedException, OAuthCommunicationException, OAuthMessageSignerException, IOException, URISyntaxException { Properties property = TestUtils.getConfig("api.config"); Semantics3Request semantics3Request = new Semantics3Request(property.get("API_KEY").toString(), property.get("API_SECRET").toString()); From aeaa551a8cc18e55ded3af56c20ab63ad465a964 Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Mon, 16 Nov 2015 19:08:54 +0530 Subject: [PATCH 62/66] Add error code to exception. --- .../com/semantics3/api/Semantics3Request.java | 22 ++++++++++++++----- .../java/com/semantics3/api/ProductsTest.java | 9 ++++++++ 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/semantics3/api/Semantics3Request.java b/src/main/java/com/semantics3/api/Semantics3Request.java index c5cce25..f3c3b87 100644 --- a/src/main/java/com/semantics3/api/Semantics3Request.java +++ b/src/main/java/com/semantics3/api/Semantics3Request.java @@ -99,7 +99,13 @@ protected JSONObject fetch(String endpoint, String params) throws catch (IOException e) { InputStream error = ((HttpURLConnection) request).getErrorStream(); JSONObject json = new JSONObject(new JSONTokener(error)); - json.put("code", "Error"); + if (!json.has("code")) { + json.put("code", "Error"); + } + else { + Object value = json.get("code"); + json.put("code", value.toString()); + } return json; } } @@ -145,7 +151,13 @@ protected JSONObject fetch(String endpoint, String method, HashMap 0, is(true)); } + @Test(expected = Semantics3Exception.class) + public void TestSiteQuery() throws IOException, OAuthExpectationFailedException, OAuthCommunicationException, OAuthMessageSignerException, URISyntaxException { + Properties property = TestUtils.getConfig("api.config"); + Products products = new Products(property.get("API_KEY").toString(), property.get("API_SECRET").toString()); + products .productsField("url", "zsdfseobn.com/sdgeafg"); + JSONObject results = products.getProducts(); + } + @Ignore public void TestPagination() throws IOException, OAuthCommunicationException, OAuthExpectationFailedException, OAuthMessageSignerException, URISyntaxException { Properties property = TestUtils.getConfig("api.config"); From 8b1e4f3b130f71622eae41aac8b2458f18e46fdc Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Mon, 16 Nov 2015 19:10:58 +0530 Subject: [PATCH 63/66] [maven-release-plugin] prepare release Sem3Java-1.2.4 --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 0542cc3..34faf84 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.semantics3 Sem3Java - 1.2.4-SNAPSHOT + 1.2.4 Semantics3 Java Library https://github.com/Semantics3/semantics3-java Java bindings for Semantics3 API @@ -147,7 +147,7 @@ scm:git:git://github.com/Semantics3/semantics3-java.git scm:git:git@github.com:Semantics3/semantics3-java.git https://github.com/Semantics3/semantics3-java - HEAD + Sem3Java-1.2.4 From 26f267c547dfb650e554bfc0f505981f90825aab Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Mon, 16 Nov 2015 19:11:08 +0530 Subject: [PATCH 64/66] [maven-release-plugin] prepare for next development iteration --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 34faf84..cea89bf 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.semantics3 Sem3Java - 1.2.4 + 1.2.5-SNAPSHOT Semantics3 Java Library https://github.com/Semantics3/semantics3-java Java bindings for Semantics3 API @@ -147,7 +147,7 @@ scm:git:git://github.com/Semantics3/semantics3-java.git scm:git:git@github.com:Semantics3/semantics3-java.git https://github.com/Semantics3/semantics3-java - Sem3Java-1.2.4 + HEAD From 4b3eda08a51b076b05260245d1ebd6c70d037c6c Mon Sep 17 00:00:00 2001 From: abishekk92 Date: Mon, 16 Nov 2015 19:21:04 +0530 Subject: [PATCH 65/66] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 69e5764..fef66c4 100644 --- a/README.md +++ b/README.md @@ -11,11 +11,11 @@ See https://www.semantics3.com for more information. com.semantics3 Sem3Java - 1.2.3 + 1.2.4 ``` -* For projects which don't use Maven each stable [release](https://github.com/Semantics3/semantics3-java/releases/download/Sem3Java-1.2.3/Sem3Java-1.2.3-jar-with-dependencies.jar) is also available as a fat jar. +* For projects which don't use Maven each stable [release](https://github.com/Semantics3/semantics3-java/releases/download/Sem3Java-1.2.4/Sem3Java-1.2.4-jar-with-dependencies.jar) is also available as a fat jar. ## Getting Started From 5ccbab5721b0b2d049a98f9f88bba78b8754741a Mon Sep 17 00:00:00 2001 From: Amarnath Ravikumar Date: Fri, 14 Apr 2017 17:48:46 +0530 Subject: [PATCH 66/66] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index fef66c4..79cbf36 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ See https://www.semantics3.com for more information. In order to use the client, you must have both an API key and an API secret. To obtain your key and secret, you need to first create an account at https://www.semantics3.com/ -You can access your API access credentials from the user dashboard at https://www.semantics3.com/dashboard/applications +You can access your API access credentials from the user dashboard at https://dashboard.semantics3.com. ### Setup Work