Skip to content

Commit bce942b

Browse files
authored
Merge pull request #326 from skeemer/fix-contact-tags
Fix adding tags to a contact
2 parents 95e35c3 + c49fa5f commit bce942b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Infusionsoft/Api/Rest/ContactService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ public function addTags($tagIds)
4444
throw new InfusionsoftException('A maximum of 100 tag ids can be added at once');
4545
}
4646

47-
$tags = new \stdClass;
48-
$tags->tagIds = $tagIds;
47+
$tags = [];
48+
$tags['tagIds'] = $tagIds;
4949

5050
$response = $this->client->restfulRequest('post', $this->getFullUrl($this->id . '/tags'), $tags);
5151

0 commit comments

Comments
 (0)