Browse files

ref_code to ref_id

  • Loading branch information...
1 parent 98f05b8 commit 4d72c08a903a1735e20ec3f103b9cb962c4e4ad3 @clarkdave clarkdave committed Mar 6, 2013
Showing with 3 additions and 4 deletions.
  1. +3 −4 src/main.php
View
7 src/main.php
@@ -27,18 +27,18 @@ public function __construct($token, $secret) {
* @param [type] $name The activity name, as defined by you
* @param [type] $customer_id The ID of the current logged in customer
* @param [type] $customer_email The email of the current logged in customer
- * @param [type] $ref_code The referral code for the current user
+ * @param [type] $ref_id The referral code for the current user
* @param array $properties Activity specific properties
* @return object An object with information about the request. If the track
* was successful, object->success will be true.
*/
- public function track($name, $customer_id, $customer_email, $ref_code, array $properties = array()) {
+ public function track($name, $customer_id, $customer_email, $ref_id, array $properties = array()) {
$params = array(
'name' => $name,
'date' => date('c'),
'customer_id' => $customer_id,
'customer_email' => $customer_email,
- 'ref_code' => $ref_code,
+ 'ref_id' => $ref_id,
'properties' => $properties,
);
@@ -80,7 +80,6 @@ public function getCustomerAuthToken($customer_id) {
// should have got json back
if (empty($response->body)) return null;
- // try to decode it
$json = json_decode($response->body);
if ($json && $json->auth_token) {

0 comments on commit 4d72c08

Please sign in to comment.