Skip to content

Commit

Permalink
Merge pull request #6 from upwork/v1.2.1
Browse files Browse the repository at this point in the history
v1.2.1
  • Loading branch information
mnovozhylov authored Feb 15, 2017
2 parents efc584a + b7014db commit 48e386f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
5 changes: 4 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
## 1.2.1
* Applications API has moved from v3 to v4

## 1.2.0
* Added Messages API (new)
* Message API (V1) is now fully depricated

## 1.1.1
* Add optional parameter to support pagination in GetTrayByType

# 1.1.0
## 1.1.0
* Get Categories (V1) is now fully depricated
* Added new Activities API - Assign to specific engagement the list of activities

Expand Down
6 changes: 3 additions & 3 deletions api/routers/hr/clients/applications/applications.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ func New(c api.ApiClient) (a) {

// Get list of applications
func (r a) GetList(params map[string]string) (*http.Response, []byte) {
return r.client.Get("/hr/v3/clients/applications", params)
return r.client.Get("/hr/v4/clients/applications", params)
}

// Get specific application
func (r a) GetSpecific(reference string, params map[string]string) (*http.Response, []byte) {
return r.client.Get("/hr/v3/clients/applications/" + reference, params)
}
return r.client.Get("/hr/v4/clients/applications/" + reference, params)
}
6 changes: 3 additions & 3 deletions api/routers/hr/freelancers/applications/applications.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ func New(c api.ApiClient) (a) {

// Get list of applications
func (r a) GetList(params map[string]string) (*http.Response, []byte) {
return r.client.Get("/hr/v3/contractors/applications", params)
return r.client.Get("/hr/v4/contractors/applications", params)
}

// Get specific application
func (r a) GetSpecific(reference string) (*http.Response, []byte) {
return r.client.Get("/hr/v3/contractors/applications/" + reference, nil)
}
return r.client.Get("/hr/v4/contractors/applications/" + reference, nil)
}

0 comments on commit 48e386f

Please sign in to comment.