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.
Introduction to Promises chevron-right circle-check
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)
Copy client . friends : countFriends ( 1 ): andThen ( function ( count )
print ( count )
end ): catch ( warn ) Returns: <integer>
circle-check
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.
Introduction to Pages chevron-right Sample code : (gets the followers of me)
Returns: <array> (page object)
circle-check
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:
Introduction to Pages chevron-right Sample code : (gets the people I'm following) (nobody lol)
Returns: <array> (page object)
countFriendRequests
circle-exclamation
This endpoint requires authorization
This counts the friend requests for the current authenticated user.
Sample code :
This function requires no arguments.
Returns : <integer>
circle-check
This method does not require authorization.
This method returns the friends of a specified user in an array format.
Sample code :
Returns : <array> Example: