SEOMoz Data not working (patch included)
Closed this issue · 4 comments
ChrisAlvares commented
SEO Moz data has not worked correctly for about a month. I believe SEO Moz now requires a "Cols" parameter. (see: http://apiwiki.seomoz.org/url-metrics)
This should be the new Seomoz_Authority function:
public static function Seomoz_Authority($uri)
{
// external helper class
include_once ('ext/SeoMoz/Authenticator.php');
$authenticator = new Authenticator();
$url = urlencode($uri);
$tmp = SEOstats::cURL('http://lsapi.seomoz.com/linkscape/url-metrics/'.$url.'?'.$authenticator->getAuthenticationStr().'&Cols=103079266336');
$data = json_decode($tmp);
$result = array('URL Authority' => $data->upa, //34359738368
'URL mozRank' => $data->umrp, //16384
'Domain Authority' => $data->pda, //68719476736
'Domain mozRank' => $data->fmrp, //32768
'External Links' => $data->ueid, //32
'Total Links' => $data->uid //2048
);
return $result;
}
Software-Design commented
You also need to change the API-IDs because to seostat account has been closed
eyecatchup commented
Closed, since SEOmoz methods were removed with the latest master release (2.5.1). Note: They'll probably be added in version 2.5.2 again.
eyecatchup commented
Assigned to new milestone.
eyecatchup commented
Fixed in commit b701594 for inclusion in next version update.