Last updated
Last updated
<?php
$oauth = new OAuth('PROVIDEDKEYHERE', 'PROVIDEDSECRETHERE', OAUTH_SIG_METHOD_HMACSHA1);
$oauth->fetch('/api/v2/sites/');
$content = $oauth->getLastResponse();
?>
<?php
$params = array(
'domain' => 'somebusinessname.com',
...
);
$body = json_encode($params);
$oauth = new OAuth('PROVIDEDKEYHERE', 'PROVIDEDSECRETHERE', OAUTH_SIG_METHOD_HMACSHA1);
$oauth->fetch('/api/v2/sites/', $body, 'POST', array('Content-Type' => 'application/json'));
$content = $oauth->getLastResponse();
?>