buy
List Eapps

Description

Use the List Eapps API to list all apps created by enduser.

Parameters

Sample Code

curl --insecure -u "username:password" -X POST "https://hostip:2005/index.php?api=json&act=eapps"
<?php

$user = 'root';
$pass = 'your_password';
$ip = 'your_ip';

$url = 'https://'.rawurlencode($user).':'.rawurlencode($pass).'@'
     . $ip . ':2005/index.php?api=json&act=eapps';

// Set the curl parameters 
$ch = curl_init(); 
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10); 
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 

// Get a response from the server. 
$resp = curl_exec($ch);

if (curl_errno($ch)) {
    die('CURL Error: ' . curl_error($ch));
}

curl_close($ch);

// The response will hold a string per the API response method
$res = json_decode($resp, true);

if (!empty($res['done'])) {
    echo "<pre>";
    print_r($res['done']);
    echo "</pre>";
}
else {
    echo "<pre>";
    print_r($res);
    echo "</pre>";
}
    Was this page helpful?
    Newsletter Subscription
    Subscribing you to the mailing list