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 - uploadAppToRepo XML Response using other markets


//Web Service needed arguments
//All the other info will be retrieved from other markets if existent
$myrepo = 'my-repository'; //Your User Repository name
$mytoken = 'ad46c7f21afc00775be266e77989b686b5fc9c694d7125ae0da17'; //Your Dev Token
$myapk = '/my-path/my-file.apk'; //Your APK file path
$onlyuserepo = 'false'; //Upload only to user repo (true) or upload to apps repository as well (false)
$mymode = 'xml';

//Using the Web Service
$request = '';
define('MBOUND', '--------------------------'.microtime(true));
$header = 'Content-Type: multipart/form-data; boundary='.MBOUND;
$file_contents = file_get_contents($myapk);
$content = "--".MBOUND."\r\n".
          "Content-Disposition: form-data; name=\"apk\";
          "Content-Type: application/\r\n\r\n".

$content .= "--".MBOUND."\r\n".
    "Content-Disposition: form-data; ".
    "Content-Disposition: form-data; ".
    "Content-Disposition: form-data; ".

if (isset($onlyuserepo)){
   $content .= "--".MBOUND."\r\n".
    "Content-Disposition: form-data; ".

$content .= "--".MBOUND."--\r\n";
$context = stream_context_create(array(
                        'http' => array(
                           'method' => 'POST',
                           'header' => $header,
                           'content' => $content
$response = file_get_contents($request, false, $context);

//Get XML response
$xmlobj = simplexml_load_string(html_entity_decode($response));   //XML Object
echo 'Upload status: '.$xmlobj->status.'<br />';
foreach($xmlobj->errors->entry as $errlog){
   echo $errlog.'<br />';