Difference between revisions of "Sociable Profile API"
Jump to navigation Jump to search
(Created page with "Category:Sociable == Prerequisites: == Add the required Sociable API library: <pre>require_once JPATH_ROOT.'/components/com_sociable/lib/api.php';</pre> Now get the profi...")
Latest revision as of 02:15, 11 August 2019
Add the required Sociable API library:
Now get the profile API:
$profileApi = SociableApi::getProfileApi();
Syntax of the getUserProfile API call to get full details of the user profile:
getUserProfile($identifiers, $forceReload = false)
- $identifiers - int/array or ints
- Single user id or array of user ids for which the user profile need to be fetched. If an array of user ids are given, the function will return an associative array of user profiles with user id as a key. Required parameter.
- $forceReload - boolean
- Force reload data from database instead of using cache