Skip to content

Instantly share code, notes, and snippets.

@iamniels
Created October 31, 2019 10:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iamniels/81164f418a9b3c3fb6a32a7f16d2e970 to your computer and use it in GitHub Desktop.
Save iamniels/81164f418a9b3c3fb6a32a7f16d2e970 to your computer and use it in GitHub Desktop.
PHP snippet to send review invite using the Kiyoh API
<?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