Write the reason you're deleting this FAQ
Hello all, I couldn't help but notice many affiliate stores have level x user lists and struggle to find them all so I made a php script that finds most level x users and formats the output in xml and json.
Simple xml version!
[PHP]$base = 'https://www.seoclerks.com';
function LevelX($amount) {
global $base;
$response = file_get_contents("${base}/api?type=inlinead&ul=4&am=${amount}&f=json");
return json_decode($response, true);
}
$request = LevelX('1000');
$levelx = new SimpleXMLElement('<levelx/>');//Create xml root called levelx!
$Duplicates_array[] = '';
foreach ($request as $data) {
if (!in_array($data['seller_username'], $Duplicates_array)) {
$Duplicates_array[] = $data['seller_username'];
$user = $levelx->addChild('user');//Create children in levelx called user
//Add user attributes / info!
$user->addAttribute('name', $data['seller_username']);
$user->addAttribute('id', $data['seller_userid']);
$user->addAttribute('location', $data['seller_country']);
}
}
Header('Content-type: text/xml');
print($levelx->asXML());[/PHP]
What would output something like below for each user.
<user name="jakemadness" id="79732" "GB"/>
And here is the json version what is much smaller!
[PHP]$base = 'https://www.seoclerks.com';
function LevelX($amount) {
global $base;
$response = file_get_contents("${base}/api?type=inlinead&ul=4&am=${amount}&f=json");
return json_decode($response, true);
}
$request = LevelX('1000');
$user_array[] = '';
foreach ($request as $data) {
if (!in_array($data['seller_username'], $user_array)) {
$user_array[] = $data['seller_username'];
}
}
echo json_encode($user_array);
[/PHP]
what would output something like below.
["jakemadness","hitmeasap","karoshio", . ... .. .
If you would like the result in any other format let me know and I will see what I can do for you
I hope this helps any affiliate store users
That is awesome, nice work. I think there are plans for a member list, btw.
Are you sure you want to delete this post?
Are you sure you want to delete this post?
Are you sure you want to delete this post?
robertman11
Are you sure you want to delete this post?