New user?

Returning user?

Forgot your password?

It's completely free!


Register here

Forgot your password?


You're one step closer to becoming a Aptoider!

We will send you a confirmation email to

In the meantime please continue to the final registration step.

Continue to final step Ups... wrong email...

Need to contact us?

Please insert an email address Password must:<br>- have 8 characters minimum<br>- have one letter<br>- have one number OR one special character (!@#$%*) This url is invalid, please enter a valid one. Use only letters, numbers and/or dashes. No spaces please! Please insert a name Business Name should be smaller than 40 characters. Please insert an address. Please insert a company name. Please insert a valid country. Please insert a valid phone number. Please insert a valid phone number. Please insert a city. Please insert a zip/postal code. Please insert a tax ID / VAT. You must agree with terms of use. You must select one option RETRY JOIN NOW
This website uses cookies to improve service quality. By browsing this website, you are consenting the use of cookies.
I understand Learn more

Web Services Documentation

Web Services Examples - getRepositoryInfo GET::XML Response


//Web Service needed arguments
$myrepo = 'my-repository';   //Your User Repository name
$mymode = 'xml';

//Using the Web Service
$request = ''.$myrepo.'/'.$mymode;
$response = file_get_contents($request);
$xmlobj = simplexml_load_string(html_entity_decode($response));   //XML Object

//Retrieve the data from the XML if 'OK'
// (in this case we're using a simple table to show the contents as an example)
if ($xmlobj->status == 'OK'){

   //Create table header
   echo '<table>';
   echo '<th>Name</th> <th>Avatar</th> <th>Downloads</th>';
   //Build data table
   foreach($xmlobj->listing->entry as $row){
      echo '<tr>';
      echo '<td>'.$row->name.'</td>';
      echo '<td><img src="'.$row->avatar.'"/></td>';
      echo '<td>'.$row->downloads.'</td>';
      echo '</tr>';
   echo '</table>';

} else {

   //On 'FAIL': Show the error message
   echo 'Retrieving getRepositoryInfo XML failed!<br />';
   echo 'Error log:<br />';
   foreach($xmlobj->errors->entry as $errlog){
      echo $errlog.'<br />';