We are using the API to get users in an excel file, but we only get Approved users (not Disapproved).

Hi team,

We are using the API to get users in an excel file.

So far, all works fine.

In a PHP file executed by a Cronjob, we include our API key, our username, and we pull data like so for each user:

            $users[$i]['ConversationContactType'] = $raw_users[$i]['ConversationContactType'];
            $users[$i]['ReceiveEmails'] = $raw_users[$i]['ReceiveEmails'];
            $users[$i]['JoinDate'] = $raw_users[$i]['JoinDate'];
            $users[$i]['LastLoginDate'] = $raw_users[$i]['LastLoginDate'];
            $users[$i]['LastVisitedDate'] = $raw_users[$i]['LastVisitedDate'];
            $users[$i]['Username'] = $raw_users[$i]['Username'];
            $users[$i]['AccountStatus'] = $raw_users[$i]['AccountStatus'];
            $users[$i]['ModerationLevel'] = $raw_users[$i]['ModerationLevel'];
            $users[$i]['TermsOfServiceAcceptanceDate'] = $raw_users[$i]['TermsOfServiceAcceptanceDate'];

...etc.

But we only get Approved users (not Disapproved). How can we include the Disapproved users too and have the word "Disapproved" in their AccountStatus column?

Thanks for your help,



added bold in the data we are interested in
[edited by: jan444 at 2:10 AM (GMT 0) on Mon, Jan 17 2022]
Parents Reply Children