Skip to content

Commit

Permalink
Add update method to Contact service (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamaltman authored Nov 29, 2016
1 parent 042904b commit 67d477e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Services/ContactService.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,17 @@ public function create($data, $contactId = null)
return $this->client()->post($data, 'contacts');
}
}

/**
* @param string $contactId
* @param array|JsonSerializable|Contact $data
*
* @throws UnprocessableEntityException The input data does not valid
*
* @return Contact
*/
public function update($contactId, $data)
{
return $this->client()->put($data, 'contacts/{contactId}', ['contactId' => $contactId]);
}
}

0 comments on commit 67d477e

Please sign in to comment.