Friends
This page has methods that include things like friends and followers. The page below introduces you to "promises" which is what is used to handle success and errors with the API.
pageIntroduction to PromisescountFriends
This method does not require authorization.
This method counts the friends for a specified user.
Sample code: (provides the friend count of the Roblox account)
Arguments:
Type | Name |
---|---|
integer | userId |
Returns: <integer>
getFollowers
This method does not require authorization.
This methods gets the followers of a specified user in a page format. If you do not know how to use pages, you can check it out at the page below.
pageIntroduction to PagesSample code: (gets the followers of me)
Arguments:
Type | Name |
---|---|
integer | userId |
Returns: <array> (page object)
getFollowings
This method does not require authorization.
This method gets the people the specified user is following in a page format. If you don't know how to use pages, here's the rundown:
pageIntroduction to PagesSample code: (gets the people I'm following) (nobody lol)
Arguments:
Type | Name |
---|---|
integer | userId |
Returns: <array> (page object)
countFriendRequests
This endpoint requires authorization
This counts the friend requests for the current authenticated user.
Sample code:
This function requires no arguments.
Returns: <integer>
getFriends
This method does not require authorization.
This method returns the friends of a specified user in an array format.
Sample code:
Arguments:
Type | Name |
---|---|
integer | userId |
Returns: <array> Example:
Last updated