This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-05-10 04:53:03

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

scratcher stats

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)


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#2 2011-05-10 05:31:35

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: scratcher stats

The userswithfriend doesn't exist.  sad
You can find a list of the API functions heresmile

Offline

 

#3 2011-05-10 06:42:37

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: scratcher stats

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

 

#4 2011-05-10 12:33:18

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: scratcher stats

You can use my block to get friends of user. You have it already don't you?


You can now reach me on Twitter @johnnydean1_

Offline

 

#5 2011-05-10 13:09:29

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: scratcher stats

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  smile

Offline

 

#6 2011-05-10 14:12:29

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: scratcher stats

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...


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#7 2011-05-10 18:53:33

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: scratcher stats

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?  tongue


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#8 2011-05-10 23:52:48

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: scratcher stats

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.  smile
@Pecola1: Sparks used some of yours and found some more in the API list.

Offline

 

Board footer