Skip to content

Instantly share code, notes, and snippets.

@ixmatus
Last active December 19, 2015 16:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ixmatus/5986139 to your computer and use it in GitHub Desktop.
Save ixmatus/5986139 to your computer and use it in GitHub Desktop.
<?PHP
// JSON results is the default
$rt = new Ranktracker($this->accessSecret, $this->accessToken);
// Get all your pairs - this works fine
var_dump($rt->get_all());
//$data['keyword']='smart income';
//$data['url']='http://www.smartpassiveincome.com';
$data = <<<'EOT'
<?xml version="1.0" encoding="UTF-8"?>
<pair>
<url>http://www.smartpassiveincome.com</url>
<keyword>smart income</keyword>
</pair>
EOD;
$pairid = $rt->create($data);
echo var_dump($rt->exists($pairid));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment