Skip to content

Instantly share code, notes, and snippets.

@marcguyer
Last active September 14, 2017 19:57
Show Gist options
  • Save marcguyer/c6d93b5cf02d8102ab99 to your computer and use it in GitHub Desktop.
Save marcguyer/c6d93b5cf02d8102ab99 to your computer and use it in GitHub Desktop.
Create Customer Examples
<?php
$client->newCustomer([
'code' => 'TEST_CUSTOMER',
'firstName' => 'Example',
'lastName' => 'Customer',
'email' => 'example_customer@example.com',
'subscription' => [
'planCode' => 'PLAN_CODE'
]
]);
client.new_customer(
:code => 'TEST_CUSTOMER',
:firstName => 'Example',
:lastName => 'Customer',
:email => 'example_customer@example.com',
:subscription => {
:planCode => 'PLAN_FREETRIAL'
}
)
curl -d "code=TEST_CUSTOMER&firstName=Example" \
-d "lastName=Customer&email=example_customer@example.com" \
-d "subscription[planCode]=PLAN_CODE" \
-u "user@yourcompany.com:{product key or password}" \
https://cheddargetter.com/xml/customers/new/productCode/PRODUCT_CODE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment