} //Copy credentials from Rivio Dashboard (http://dashboard.getrivio.com/dashboard/settings/business) $rivio = new Rivio($rivio_api_key, $rivio_secret_key); //Minimal parameters list /* $result=$rivio->register_postpurchase_email( "1492411013333333s",//$order_id "2015-09-28T09:16:16-04:00",//$ordered_date "*****@*****.**",//$customer_email "John",//$customer_first_name "1492411012",//$product_id "Samsung Galaxy S6"//$product_name );*/ //Full parameters list try { $result = $rivio->register_postpurchase_email("1492411013331", "2015-09-28T09:16:16-04:00", "*****@*****.**", "John", "1492411012", "Samsung Galaxy S6", "https://example.com/products/galaxy-s6", "https://images.example.com/big/200", "This is the product description", "1234567890123", "Mobile phone", "Samsung", "499"); } catch (Exception $e) { $result = "Error: " . $e->getMessage(); } ?> <html> <head> <title>Register Postpurchase Email - Rivio PHP SDK example</title> </head> <body> <h1>Rivio Register Postpurchase Email</h1> <p>result:</p> <pre><?php print_r($result); ?> </pre>