Skip to content

Commit

Permalink
Merge pull request #5 from EurekaRanch/jobTitle
Browse files Browse the repository at this point in the history
able add jobTitle to contact account association
  • Loading branch information
dunkoh authored May 27, 2020
2 parents 5d54b86 + 3fc0d37 commit d1f2a11
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Contacts/Contacts.php
Original file line number Diff line number Diff line change
Expand Up @@ -345,17 +345,19 @@ public function removeAutomation(int $contactAutomationId)
*
* @param int $contactID
* @param int $accountID
* @param string $jobTitle
* @return string
*/
public function addContactToAccount(int $contactID, int $accountID)
public function addContactToAccount(int $contactID, int $accountID, string $jobTitle = '')
{
$req = $this->client
->getClient()
->post('/api/3/accountContacts', [
'json' => [
'accountContact' => [
'contact' => $contactID,
'account' => $accountID
'account' => $accountID,
'jobTitle' => $jobTitle
]
]
]);
Expand Down

0 comments on commit d1f2a11

Please sign in to comment.