Created
October 31, 2019 10:16
-
-
Save iamniels/81164f418a9b3c3fb6a32a7f16d2e970 to your computer and use it in GitHub Desktop.
PHP snippet to send review invite using the Kiyoh API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$url = 'https://kiyoh.com/v1/invite/external'; | |
$params = array( | |
'hash' => 'HASH', | |
'location_id' => 'LOCATION_ID', | |
'tenantId' => '98', // 99 for klantenvertellen | |
'delay' => 0, | |
'first_name' => 'CUSTOMER NAME', // Last name is optional, so just use first_name for the full name | |
'ref_code' => 'YOUR REFERENCE', | |
'language' => 'nl', | |
'invite_email' => 'CUSTOMER EMAIL', | |
); | |
echo file_get_contents($url . "?" . http_build_query($params)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment