Skip to content

Instantly share code, notes, and snippets.

@spaomalley
Last active December 13, 2015 20:38
Show Gist options
  • Save spaomalley/4971155 to your computer and use it in GitHub Desktop.
Save spaomalley/4971155 to your computer and use it in GitHub Desktop.
Create a customer using the minimum requirements
<?php
require 'ConfigFactory.php';
require 'OAuthRequest.php';
$c = new Creds();
$creds = $c->creds();
$links = $c->links();
$accessTokenData = getAccessToken($links, $creds);
$customerInfo = array(
"name"=>""
);
$customer = new OAuthRequest($endpoint['postCustomer'], $accessTokenData);
$customer->createHeader($customerInfo);
echo sendRequest($customerInfo);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment