Hi,
I have created a script that pulls data from the currently logged-in user and places it in a PDF document for the user to download, using the CB Foundation API -
www.allmysocials.com/index.php?option=com_flexicontent&view=items&id=231:include-api-externally
and the code snippet from here -
www.allmysocials.com/directory/tutorials/item/232-establishing-user-object
- to establish a $user object from which I can extract various fields of user information.
This works great for accessing the currently logged-in user's data, but I also need to develop a script that will allow an administrator or manager to run a batch job to access user data from all (or specific) registered users in the database. What do I need to do to achieve this?
Second question: How do I get the CBsubs plan expiry date for the currently logged-in user? I can't figure out what CB field holds this date if any.
Thanks,
Phil.