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 hidden or 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' => '[email protected]', | |
| 'subscription' => [ | |
| 'planCode' => 'PLAN_CODE' | |
| ] | |
| ]); | 
  
    
      This file contains hidden or 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 => '[email protected]', | |
| :subscription => { | |
| :planCode => 'PLAN_FREETRIAL' | |
| } | |
| ) | 
  
    
      This file contains hidden or 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 protected]" \ | |
| -d "subscription[planCode]=PLAN_CODE" \ | |
| -u "[email protected]:{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