Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
Renaming arguments to camel case
Browse files Browse the repository at this point in the history
  • Loading branch information
Tjardo committed Dec 12, 2022
1 parent 5fed3e1 commit 260bd5a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/Resources/ActiveCampaignContactsResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,25 +112,25 @@ public function delete(int $id): void
}

/**
* Add a tag to contact
* Add a tag to a contact.
*
* @see https://developers.activecampaign.com/reference/create-contact-tag
*
* @param int $id
* @param int $tag_id
* @param int $tagId
* @return string
*
* @throws ActiveCampaignException
*/
public function tag(int $id, int $tag_id): string
public function tag(int $id, int $tagId): string
{
$contactTag = $this->request(
method: 'post',
path: 'contactTags',
data: [
'contactTag' => [
'contact' => $id,
'tag' => $tag_id,
'tag' => $tagId,
],
],
responseKey: 'contactTag'
Expand All @@ -140,20 +140,20 @@ public function tag(int $id, int $tag_id): string
}

/**
* Remove a tag from a contact
* Remove a tag from a contact.
*
* @see https://developers.activecampaign.com/reference#delete-contact-tag
*
* @param int $contact_tag_id
* @param int $contactTagId
* @return void
*
* @throws ActiveCampaignException
*/
public function untag(int $contact_tag_id): void
public function untag(int $contactTagId): void
{
$this->request(
method: 'delete',
path: 'contactTags/'.$contact_tag_id
path: 'contactTags/'.$contactTagId
);
}
}

0 comments on commit 260bd5a

Please sign in to comment.