Skip to content

Commit

Permalink
Fix lead / leadLabels update
Browse files Browse the repository at this point in the history
  • Loading branch information
jr-k authored Jul 12, 2022
1 parent a32e1a7 commit af6429a
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/Resources/Leads.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,25 @@ public function deleteLabel($id)
* @param array $values
* @return Response
*/
public function update($id, array $values = [])
public function updateLabel($id, array $values = [])
{
$this->request->setResource('leadLabels');

return $this->request->put('/' . $id, $values);
}

/**
* @param $id
* @param array $values
* @return Response
*/
public function update($id, array $values = [])
{
$this->request->setResource('leads');

return $this->request->get('');
}

/**
* Get all sources.
*
Expand Down

0 comments on commit af6429a

Please sign in to comment.