The sample code below will give you the list of users and their status (active/deactivated).
<?php
$url = 'https://user_name:password@mingle_url/api/v2/users.xml';
$xml = simplexml_load_file($url);
#$printf(xml->project[0]->name);
#$options = $xml->query('*/user');
foreach ($xml->user as $lang) {
printf("%s %s\n", $lang->name, $lang->activated);
}
Comments
0 comments
Please sign in to leave a comment.