Skip to content

Commit

Permalink
Updates point endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
leshniak authored Jan 13, 2024
1 parent 8cb26bb commit b0c06dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inpost_api_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"time"
)

const userAgent = "InPost-Mobile/3.18.0-release (iOS 17.1.1; iPhone14,2; pl)"
const userAgent = "InPost-Mobile/3.19.0-release (iOS 17.2; iPhone14,2; pl)"
const apiHost = "api-inmobile-pl.easypack24.net"

type InPostAPIClient struct {
Expand Down Expand Up @@ -84,7 +84,7 @@ func (inpost *InPostAPIClient) GetPoint(pointId string) (*Point, error) {
}
}

endpoint := url.URL{Path: fmt.Sprintf("/v2/points/%s", pointId)}
endpoint := url.URL{Path: fmt.Sprintf("/v3/points/%s", pointId)}
response, body := inpost.request("GET", &endpoint, nil)

if response.StatusCode != http.StatusOK {
Expand Down

0 comments on commit b0c06dd

Please sign in to comment.