Get Friends

The SDK provides methods for accessing a user's profile and a user's friends profiles.

The user's profile is returned to the UserListener, when the user is "auth'd". The user profile contains the following properties:

  • Get Friends

This method will return a list of this user's friends (with profile for each friend).

PPgetFriends()
parms:
None
returns:
A promise that will resolve on success to the list of this user's friends, and on error, to the error status.
PPgetFriends()
.then((response) => {
console.log("friends:", JSON.stringify(response));
})
.catch((error) => {
console.error(error);
})