Skip to content
This repository was archived by the owner on Aug 28, 2025. It is now read-only.

Commit 70a4ac1

Browse files
committed
Merge pull request #4 from upwork/v1.1.0
V1.1.0
2 parents cd7910d + c21be56 commit 70a4ac1

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 1.1.0
2+
* Get Categories (V1) is now fully depricated
3+
* Added new Activities API - Assign to specific engagement the list of activities
4+
15
## 1.0.1
26
* added a possibility of usage a custom http client
37
* added basic tests

api/routers/activities/engagement/engagement.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,9 @@ func (r a) GetSpecific(engagementRef string) (*http.Response, []byte) {
4444
// Assign engagements to the list of activities
4545
func (r a) Assign(company string, team string, engagement string, params map[string]string) (*http.Response, []byte) {
4646
return r.client.Put("/otask/v1/tasks/companies/" + company + "/teams/" + team + "/engagements/" + engagement + "/tasks", params)
47-
}
47+
}
48+
49+
// Assign to specific engagement the list of activities
50+
func (r a) AssignToEngagement(engagementRef string, params map[string]string) (*http.Response, []byte) {
51+
return r.client.Put("/tasks/v2/tasks/contracts/" + engagementRef, params)
52+
}

api/routers/metadata/metadata.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,6 @@ func New(c api.ApiClient) (a) {
3636
return r
3737
}
3838

39-
// Get categories
40-
func (r a) GetCategories() (*http.Response, []byte) {
41-
return r.client.Get("/profiles/v1/metadata/categories", nil)
42-
}
43-
4439
// Get categories (V2)
4540
func (r a) GetCategoriesV2() (*http.Response, []byte) {
4641
return r.client.Get("/profiles/v2/metadata/categories", nil)
@@ -64,4 +59,4 @@ func (r a) GetTests() (*http.Response, []byte) {
6459
// Get reasons
6560
func (r a) GetReasons(params map[string]string) (*http.Response, []byte) {
6661
return r.client.Get("/profiles/v1/metadata/reasons", params)
67-
}
62+
}

0 commit comments

Comments
 (0)