|
| 02 Jun 2015 09:16 AM |
I need to be able to get ALL the online friends by userId (as opposed to getting a maxmimum of 50 online friends only if they're ingame)
Ideally I'd like for it to return online friends, but if they can return all friends with some way of viewing if they're online or not (so I can loop through) that would be great too. Also, it has to be usable, I don't want one that's like, locked up (rproxy doesn't seem to work for me) |
|
|
| Report Abuse |
|
|
Darkenus
|
  |
| Joined: 17 Jul 2014 |
| Total Posts: 1997 |
|
|
| 02 Jun 2015 10:24 AM |
The following API gets all your best friends:
http://www.roblox.com/friends/json?userId=261¤tPage=0&pageSize=20&imgWidth=110&imgHeight=110&imgFormat=jpeg&friendsType=BestFriends
All you have to do, is edit the userId, to your ID, and the friendsType to "AllFriends".
WIKI: http://wiki.roblox.com/index.php?title=Web_APIs#Friendship_APIs
This gets your best friends and returns a JSON table of their basic information. It does however have an online status feature, but it is still hard to use:
{ "UserId": 261, "TotalFriends": 15, "CurrentPage": 0, "PageSize": 20, "TotalPages": 1, "FriendsType": "BestFriends", "Friends": [{ "UserId": 916, "Username": "Matt Dusek", "AvatarUri": "http://t7.rbxcdn.com/795ccf5d624d3a9c1a53eaa7d7ec09d4", "AvatarFinal": true, "IsBestFriend": true, "OnlineStatus": { "LocationOrLastSeen": "1/23/2015 7:00 PM", "ImageUrl": "~/images/offline.png", "AlternateText": "Matt Dusek is offline (last seen at 1/23/2015 7:00:04 PM." }, "InvitationId": 0, "FriendshipStatus": 4 }] } |
|
|
| Report Abuse |
|
|
|
| 02 Jun 2015 10:27 AM |
| But you cannot use that with HttpService, I have tried... |
|
|
| Report Abuse |
|
|
Darkenus
|
  |
| Joined: 17 Jul 2014 |
| Total Posts: 1997 |
|
|
| 02 Jun 2015 10:34 AM |
Oh lol!
I see what you mean. I have gone through the same problem as you have. But luckily, there's a way to bypass this! I use this method all the time! At first, it was hard to understand, but I understood it myself.
Read this article: http://roproxy[DOT]tk/
All you have to do, is replace "roblox.com" with "rproxy[DOT]pw" in the URL.
ROBLOX does not allow roblox.com, but if you use rproxy.pw, you can bypass this and effectively use roblox apis. NOTE: Take out the "www."
So, something like this:
http://www.roblox.com/friends/json?userId=261¤tPage=0&pageSize=20&imgWidth=110&imgHeight=110&imgFormat=jpeg&friendsType=BestFriends
Would be:
http://rproxy[DOT]pw/friends/json?userId=261¤tPage=0&pageSize=20&imgWidth=110&imgHeight=110&imgFormat=jpeg&friendsType=BestFriends
Sorry, has to use [DOT] as ROBLOX does not allow other URls.
BTW, I got roproxy here: http://wiki.roblox.com/index.php?title=User-created_web_APIs |
|
|
| Report Abuse |
|
|
|
| 02 Jun 2015 10:36 AM |
I know about roproxy...
"Also, it has to be usable, I don't want one that's like, locked up (rproxy doesn't seem to work for me)" |
|
|
| Report Abuse |
|
|
| |
|