New user?
REGISTER NOW!

Returning user?
SIGN IN!


Forgot your password?


It's completely free!

OR

ANDROID DEV
Register here

Forgot your password?


Loading...
OR

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 an 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 an company name. Please insert an valid country. Please insert a valid phone number. Please insert a valid phone number. Please insert an city. Please insert an zip/postal code. Please insert an tax ID / VAT. You must agree with terms of use. You must select one option RETRY JOIN NOW https://www.aptoide.com/phpajax/onboarding.php
This website uses cookies to improve service quality. By browsing this website, you are consenting the use of cookies.
I understand Learn more
OK

Web Services Documentation

Web Services Examples - listRepositoryChange POST::JSON Response

<?php

//Web Service needed arguments
$myrepo = 'repo-1,repo-2';   //List of repositories
$myInfoMD5Hash = 'd41d8cd98f00b204e9800998ecf8427e,0cc175b9c0f1b6a831c399e269772661';   //List of each repository info.xml MD5 hash
$mymode = 'json';

//Using the Web Service: POST method
$request = 'https://webservices.aptoide.com/webservices/listRepositoryChange';
$postdata = http_build_query(array(
         'repo' => $myrepo,
         'hash' => $myInfoMD5Hash,
         'mode' => $mymode
         ));

$opts = array('http' => array(
   'method' => 'POST',
   'header' => 'Content-type: application/x-www-form-urlencoded',
   'content' => $postdata
));

$response = file_get_contents($request, false, stream_context_create($opts));
$jsonobj = json_decode($response);   //JSON 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 ($jsonobj->status == 'OK'){

   //Create table header
   echo '<table>';
   echo '<th>Repo</th> <th>Has Updates</th> <th>Summary</th>';
   
   //Build data table
   foreach($jsonobj->listing as $row){
      echo '<tr>';
      echo '<td>'.$row->repo.'</td>';
      echo '<td>'.$row->hasupdates.'</td>';
      if ($row->hasupdates == 'TRUE'){
         if (isset($row->appscount))
            echo '<td>No hash found, repository has '.$row->appscount.' apps</td>';
         else
            echo '<td>New updates:<br/>New apps: '.$row->added.'<br />Removed apps:'.$row->removed.'</td>';
      } else {
         echo '<td>The repository is up to date (no updates)</td>';
      }
      echo '</tr>';
   }
   echo '</table>';

} else {

//On 'FAIL': Show the error message
   echo 'Retrieving listApkLikes JSON failed!<br />';
   echo 'Error log:<br />';
   foreach($jsonobj->errors as $errlog){
      echo $errlog.'<br />';
   }
}

?>