Skip to content

Commit

Permalink
fixed the action complete url
Browse files Browse the repository at this point in the history
  • Loading branch information
aluksidadi committed Jun 2, 2017
1 parent 9458d3c commit fd35efe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func (c *Client) CreateActionUsingAddress(address, city, zipCode, country, looku
Complete action
*/
func (c *Client) CompleteAction(actionId string) (*Action, error) {
url := fmt.Sprintf("%s://%s/api/%s/actions/%s/completed/", PROTOCOL, HOST, VERSION, actionId)
url := fmt.Sprintf("%s://%s/api/%s/actions/%s/complete/", PROTOCOL, HOST, VERSION, actionId)

request := make(map[string]interface{})
// request["completion_time"] = time.Now()
Expand Down

0 comments on commit fd35efe

Please sign in to comment.