Last active
September 14, 2017 19:57
-
-
Save marcguyer/c6d93b5cf02d8102ab99 to your computer and use it in GitHub Desktop.
Create Customer Examples
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 | |
$client->newCustomer([ | |
'code' => 'TEST_CUSTOMER', | |
'firstName' => 'Example', | |
'lastName' => 'Customer', | |
'email' => 'example_customer@example.com', | |
'subscription' => [ | |
'planCode' => 'PLAN_CODE' | |
] | |
]); |
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
client.new_customer( | |
:code => 'TEST_CUSTOMER', | |
:firstName => 'Example', | |
:lastName => 'Customer', | |
:email => 'example_customer@example.com', | |
:subscription => { | |
:planCode => 'PLAN_FREETRIAL' | |
} | |
) |
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
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