Idea

iamhammerheadshark avatar image
iamhammerheadshark suggested

Return FriendInfo from AddFriend API

Currently, the AddFriend endpoint either returns a boolean to indicate success (if called from Client API) or an empty response (if called from Server API). I was wondering if it was possible to return a FriendInfo object that represents the data of the friend that was added, the same object that is returned from GetFriendsList.

My specific use case for this is if a user wants to add a friend by username (and does not know the ID). Yes, AddFriend can add by username, but suppose that I want to get the friend's ID to keep track of friend lists locally. Right now, I must make another call to GetAccountInfo to get the PlayFab ID from the given username. If AddFriend was able to return information about the friend, then I can simply use that return data without needing another call.

apisFriends
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

No Comments

·

Write a Comment

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Your Opinion Counts

Share your great idea, or help out by voting for other people's ideas.