View Single Post
Old 03-04-2017, 05:11 AM  
Barry-xlovecam
It's 42
 
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
PHP Code:
<?php require_once(dirname(__FILE__) . "/../lib/XloveJsonApi.php"); ?>
<?php

$serviceid 
XloveJsonApi::getInstance()->getServiceId();
$iMethod=;

$iCpt ;
$param[$iMethod]['title'] = "Model list Online" ;
$param[$iMethod]['url'] = "listonline" ;
$param[$iMethod]['param'][$iCpt++]['serviceid'] = $serviceid ;
$param[$iMethod]['param'][$iCpt++]['xclone_url'] = "" ;
$param[$iMethod]['param'][$iCpt++]['lang'] = "EN" ;
$param[$iMethod]['param'][$iCpt++]['searchtxt'] = "" ;
$param[$iMethod]['param'][$iCpt++]['order'] = "connexion" ;
$param[$iMethod]['param'][$iCpt++]['category'] = "" ;
$param[$iMethod]['param'][$iCpt++]['s_language'] = "" ;
$param[$iMethod]['param'][$iCpt++]['price'] = "" ;
$param[$iMethod]['param'][$iCpt++]['age'] = "6" ;
$param[$iMethod]['param'][$iCpt++]['boobs'] = "" ;
$param[$iMethod]['param'][$iCpt++]['hair_color'] = "" ;
$param[$iMethod]['param'][$iCpt++]['hair_length'] = "" ;
$param[$iMethod]['param'][$iCpt++]['eyes'] = "" ;
$param[$iMethod]['param'][$iCpt++]['height'] = "" ;
$param[$iMethod]['param'][$iCpt++]['weight'] = "" ;
$param[$iMethod]['param'][$iCpt++]['ethnic_group'] = "" ;
$param[$iMethod]['param'][$iCpt++]['tags'] = "" ;
$param[$iMethod]['param'][$iCpt++]['sex_apparence'] = "" ;
$param[$iMethod]['param'][$iCpt++]['body_apparence'] = "" ;
$param[$iMethod]['param'][$iCpt++]['sex_size'] = "" ;
$param[$iMethod]['param'][$iCpt++]['chat'] = "" ;

$param[$iMethod]['param'][$iCpt++]['offset'] = "0" ;
$param[$iMethod]['param'][$iCpt++]['limit'] = "10" ;
$iMethod++ ;


$iCpt ;
$param[$iMethod]['title'] = "get liste des filtres" ;
$param[$iMethod]['url'] = "filterList" ;
$param[$iMethod]['param'][$iCpt++]['serviceid'] = $serviceid ;
$param[$iMethod]['param'][$iCpt++]['lang'] = "EN" ;
$iMethod++ ;



$iCpt ;
$param[$iMethod]['title'] = "Model Online" ;
$param[$iMethod]['url'] = "checkisonline" ;
$param[$iMethod]['param'][$iCpt++]['serviceid'] = $serviceid ;
$param[$iMethod]['param'][$iCpt++]['lang'] = "EN" ;
$param[$iMethod]['param'][$iCpt++]['modelid[]'] = "" ;
$param[$iMethod]['param'][$iCpt++]['modelid[]'] = "" ;
$param[$iMethod]['param'][$iCpt++]['modelid[]'] = "" ;
$iMethod++ ;


$iCpt ;
$param[$iMethod]['title'] = "Model Info" ;
$param[$iMethod]['url'] = "getprofileinfo" ;
$param[$iMethod]['param'][$iCpt++]['serviceid'] = $serviceid ;
$param[$iMethod]['param'][$iCpt++]['lang'] = "EN" ;
$param[$iMethod]['param'][$iCpt++]['modelid[]'] = "" ;
$param[$iMethod]['param'][$iCpt++]['modelid[]'] = "" ;
$param[$iMethod]['param'][$iCpt++]['modelid[]'] = "" ;
$iMethod++ ;

?>

<?php for ($iMethod=0$iMethod<count($param); $iMethod++) : ?>
<form action="examples/<?= $param[$iMethod]['url'?>.php" method="post">
    <fieldset>
        <legend>Example Method: <?= $param[$iMethod]['title'?></legend>
        <table>
            <?php for ($iCpt=0$iCpt<count($param[$iMethod]['param']); $iCpt++) : ?>
            <tr>
                <td><?= key($param[$iMethod]['param'][$iCpt]) ?></td>
                <td><input name="<?= key($param[$iMethod]['param'][$iCpt]) ?>" value="<?= $param[$iMethod]['param'][$iCpt][key($param[$iMethod]['param'][$iCpt])] ?>"></td>
            </tr>
            <?php endfor; ?>
            <tr>
                <td colspan="2"><input type="submit"></td>
            </tr>
        </table>
    </fieldset>
</form>

<hr/>
<?php endfor; ?>
There is some 'generic' HTML at the bottom.

there are also POST examples
PHP Code:
<?php
require_once(dirname(__FILE__) . "/../../lib/XloveJsonApi.php");

/**
 * Print Api response
 */
XloveJsonApi::getInstance()->filterList($_POST);
Barry-xlovecam is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote