-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from upwork/v1.1.0
V1.1.0
- Loading branch information
Showing
6 changed files
with
29 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ | |
author = "Maksym Novozhylov <[email protected]>", | ||
date = "6/4/2014", | ||
currentRevision = 1, | ||
lastModified = "6/4/2014", | ||
lastModified = "24/09/2015", | ||
lastModifiedBy = "Maksym Novozhylov", | ||
reviewers = {"Yiota Tsakiri"} | ||
) | ||
|
@@ -43,12 +43,12 @@ public Engagement(OAuthClient client) { | |
oClient.setEntryPoint(ENTRY_POINT); | ||
} | ||
|
||
/** | ||
/** | ||
* List activities for specific engagement | ||
* | ||
* @param engagement_ref Engagement reference | ||
* @throws JSONException If error occurred | ||
* @return {@link JSONObject} | ||
* @return {@link JSONObject} | ||
*/ | ||
public JSONObject getSpecific(String engagement_ref) throws JSONException { | ||
return oClient.get("/tasks/v2/tasks/contracts/" + engagement_ref); | ||
|
@@ -62,10 +62,22 @@ public JSONObject getSpecific(String engagement_ref) throws JSONException { | |
* @param engagement Engagement | ||
* @param params Parameters | ||
* @throws JSONException If error occurred | ||
* @return {@link JSONObject} | ||
* @return {@link JSONObject} | ||
*/ | ||
public JSONObject assign(String company, String team, String engagement, HashMap<String, String> params) throws JSONException { | ||
return oClient.put("/otask/v1/tasks/companies/" + company + "/teams/" + team + "/engagements/" + engagement + "/tasks", params); | ||
} | ||
|
||
/** | ||
* Assign engagements to the list of activities | ||
* | ||
* @param engagement_ref Engagement reference | ||
* @param params Parameters | ||
* @throws JSONException If error occurred | ||
* @return {@link JSONObject} | ||
*/ | ||
public JSONObject assignToEngagement(String engagement_ref, HashMap<String, String> params) throws JSONException { | ||
return oClient.put("/tasks/v2/tasks/contracts/" + engagement_ref, params); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters