Hey guys, If you look in the sensing section of the Panther part of the block library you will see some blocks shared by johnnydean1 and pecola1 that can report some of the stats of a scratcher. I was wondering if we could compile a list of available URLs that can be used for stats. Are there ones for "number of comments", "number of posts", "number of posts in forum[ ]"?
Here's what I have so far:
friends of user [ ]
http://scratch.mit.edu/api/getfriendsbyusername/username
authenticate user [ ] with password [ ]
http://scratch.mit.edu/api/authenticateuser?username=username&password=password
number of projects shared by [ ]
http://scratch.mit.edu/api/getnumprojectsbyuser/username
Any others people know of? One I'd really like to find is userswithfriend/username
Last edited by sparks (2011-05-10 04:59:40)
Offline
The userswithfriend doesn't exist.
You can find a list of the API functions here.
Offline
You can use
open project with ID []
http://scratch.mit.edu/api/getproject/projectID
(the []th user)
http://scratch.mit.edu/api/getusernamebyid/userID
(# of users)
http://scratch.mit.edu/api/getregisteredusers
You can also do "getcreators" "gettotalprojects" "gettotalscripts" "gettotalsprites"
Offline
You can use my block to get friends of user. You have it already don't you?
Offline
Well, as scimonster pointed out above, the Scratch Team compiled a list of API functions for us. The link he gave you is also perfect.
You should just be able to browse that to find the codes
Offline
thanks for the link! Does anyone else wish they could find out who's friend lists YOU are on? I've always thought friend is the wrong word for the scratch friendship system. Friend adding should be a request where both parties agree to the link. What we have here is watching...
Offline
scimonster wrote:
You can use
open project with ID []
http://scratch.mit.edu/api/getproject/projectID
(the []th user)
http://scratch.mit.edu/api/getusernamebyid/userID
(# of users)
http://scratch.mit.edu/api/getregisteredusers
You can also do "getcreators" "gettotalprojects" "gettotalscripts" "gettotalsprites"
Did you get that from my panther blocks?
Offline
sparks wrote:
thanks for the link! Does anyone else wish they could find out who's friend lists YOU are on? I've always thought friend is the wrong word for the scratch friendship system. Friend adding should be a request where both parties agree to the link. What we have here is watching...
I hope that will be in 2.0.
@Pecola1: Sparks used some of yours and found some more in the API list.
Offline