Not getting any response back from seomoz

30 views
Skip to first unread message

timdownunder

unread,
Oct 7, 2010, 9:26:35 AM10/7/10
to The Easy API
Hi Guys,
Wondering if someone might be able to assist. I'm not getting any
response back from seomoz using the api. It executes ok, waits for
quite a while, but doesnt return anything. Have I missed something?


<?php
// Initialize the CURL library
$cURL = curl_init();

// Set the URL to execute
curl_setopt($cURL, CURLOPT_URL, "http://xmlfeed.theeasyapi.com");

// Set options
curl_setopt($cURL, CURLOPT_HEADER, 0);
curl_setopt($cURL, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($cURL, CURLOPT_POST, 1);
curl_setopt($cURL, CURLOPT_POSTFIELDS,
"request=<easyapi_wrapper><login><apikey>xxxmyapikeyxxx</apikey></
login><search><service>seomoz</service><method>urlmetrics</
method><criteria><url>http://www.murdoch.edu.au</url></criteria></
search></easyapi_wrapper>");

// Execute, saving results in a variable
$strPage = curl_exec($cURL);
// Close CURL resource
curl_close($cURL);

// Now the variable $strPage has the returned XML.
$simple_xml = simplexml_load_string($strPage);


if(!empty($simple_xml)){
print_r($simple_XML);
}else{
echo 'The returned data did not come through.';
}


?>

Many thanks
Tim

C. Smith

unread,
Oct 7, 2010, 9:34:42 AM10/7/10
to The Easy API
Good question, let me get back at you when I get an answer. Your code
looks good and my testing script for this particular API is failing
too, so it's not you it's something in the exchange or their API is
down.

Sit tight buddy, I'll get it figured out.
Chad

C. Smith

unread,
Oct 7, 2010, 1:18:17 PM10/7/10
to The Easy API
Hey Tim,

I finally was able to track down what happened and found a multitude
of problems. First I found that the accessid, and secret key were not
being decoded correctly (everything is encrypted in my database). That
was the first issue, the second was that I am using a pear package and
somehow when I switched servers that never made the move. Lastly I
found that the unlocking mechanism (since SEOMoz requires only 3
concurrent connections be allowed per IP) was not functioning as
desired.

I appreciate you letting me know there were issues and I hope you
enjoy using The Easy API. For pointing out these issues I have placed
your account into an exempt status along with an upgraded account. You
will be able to login and see that you have one premium service
available to you along with double the amount of API Calls you can
make a day.

Have fun and tell your friends,
Chad

On Oct 7, 9:26 am, timdownunder <timelles...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages