View Single Post
Old 08-09-2014, 02:36 PM  
robber
Web Developer
 
Industry Role:
Join Date: Jan 2011
Location: UK
Posts: 264
I wrote something to do this kind of thing a while back, see below a rough outline of what you will need to do:

PHP Code:
<?php
$xml 
simplexml_load_file("http://chaturbate.com/affiliates/api/onlinerooms/?format=xml&wm=##affilliateid##");
foreach(
$xml->children() as $child){
    
$gal[$child->getname()] = $child[0];
    foreach(
$child as $ch){
        
$gal[$ch->getname()] = $ch[0];
    }
    if(
$gal['gender']=="f" && $n 40 && $gal['current_show'] == "public"){
    
?><div id="holder">
    <a href="http://chaturbate.com/affiliates/in/ZQAI/UloA3/?track=default&room=<? echo $gal['username']; ?>" target="_blank"><img src="<? echo $gal['image_url']; ?>" alt="<? echo $gal['username']; ?>"><br>
    <? echo $gal['username']; ?></a>
    </div>
    <?php
    $n
++;
    }
}
?>
Hope this helps, it will pull the first 40 female cams from the feed and display them.

All yours to edit with, enjoy

Rob
robber is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook