Skip to content

Commit

Permalink
Merge pull request #118 from arkon-event/master
Browse files Browse the repository at this point in the history
Added support for custom redirect URL when sending verification email…
  • Loading branch information
glena authored Nov 25, 2016
2 parents df9dff3 + 87fd551 commit 4652d19
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions src/API/Management/Jobs.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,21 @@ public function importUsers($file_path, $connection_id)
->call();
}

public function sendVerificationEmail($user_id)
public function sendVerificationEmail($user_id, $result_url = null)
{
$body = [
'user_id' => $user_id
];

if(!is_null($result_url)){
$body['result_url'] = $result_url;
}

return $this->apiClient->post()
->jobs()
->addPath('verification-email')
->withHeader(new ContentType('application/json'))
->withBody(json_encode([
'user_id' => $user_id
]))
->withBody(json_encode($body))
->call();
}
}
}

0 comments on commit 4652d19

Please sign in to comment.