Skip to content

Commit

Permalink
Merge pull request #18 from upwork/v1.3.1
Browse files Browse the repository at this point in the history
v1.3.1
  • Loading branch information
mnovozhylov committed Oct 21, 2019
2 parents 3422971 + f6e7984 commit f8f0e0d
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 6 deletions.
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
language: java
install: mvn install -DskipTests=true -Dgpg.skip=true
jdk:
- oraclejdk8
- openjdk7
- openjdk6
- oraclejdk9
- openjdk11
script:
- ant test
matrix:
allow_failures:
- jdk: openjdk6
- jdk: openjdk8
fast_finish: true
notifications:
email:
Expand Down
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release History

## 1.3.1
* Add Specialties API
* Add Skills V2 API

## 1.3.0
* Stop supporting deprecated Teamrooms API
* Migrate Workdiaries, Workdays and Snapshots API to v3
Expand Down
Binary file modified example-android/app/libs/java-upwork.jar
Binary file not shown.
Binary file modified lib/java-upwork.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<groupId>com.Upwork</groupId>
<artifactId>api</artifactId>
<version>1.3.0</version>
<version>1.3.1</version>
<packaging>jar</packaging>
<name>java-upwork</name>
<description>JAVA bindings for Upwork API</description>
Expand Down
20 changes: 20 additions & 0 deletions src/com/Upwork/api/Routers/Metadata.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,26 @@ public JSONObject getCategoriesV2() throws JSONException {
public JSONObject getSkills() throws JSONException {
return oClient.get("/profiles/v1/metadata/skills");
}

/**
* Get Skills V2
*
* @throws JSONException If error occurred
* @return {@link JSONObject}
*/
public JSONObject getSkillsV2() throws JSONException {
return oClient.get("/profiles/v2/metadata/skills");
}

/**
* Get Specialties
*
* @throws JSONException If error occurred
* @return {@link JSONObject}
*/
public JSONObject getSpecialties() throws JSONException {
return oClient.get("/profiles/v1/metadata/specialties");
}

/**
* Get regions
Expand Down
16 changes: 15 additions & 1 deletion test/com/Upwork/api/Routers/MetadataTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,20 @@ public class MetadataTest extends Helper {
assertTrue(json instanceof JSONObject);
}

@Test public void getSkillsV2() throws Exception {
Metadata metadata = new Metadata(client);
JSONObject json = metadata.getSkillsV2();

assertTrue(json instanceof JSONObject);
}

@Test public void getSpecialties() throws Exception {
Metadata metadata = new Metadata(client);
JSONObject json = metadata.getSpecialties();

assertTrue(json instanceof JSONObject);
}

@Test public void getRegions() throws Exception {
Metadata metadata = new Metadata(client);
JSONObject json = metadata.getRegions();
Expand All @@ -59,4 +73,4 @@ public class MetadataTest extends Helper {

assertTrue(json instanceof JSONObject);
}
}
}

0 comments on commit f8f0e0d

Please sign in to comment.