Last active
December 19, 2015 16:48
-
-
Save ixmatus/5986139 to your computer and use it in GitHub Desktop.
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 | |
// 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