< User:Rumanti

Line 1: Line 1:
 
=Scratch APIs=
 
=Scratch APIs=
 +
Certain URLs from the Scratch Website, when visited, sends a request to the servers or get a particular data. Here is a documentation that lists some of these URLs. Most of the URLs have to be modified before a specified request can be sent.
 +
 
==Front Page==
 
==Front Page==
* [https://scratch.mit.edu/messages/ajax/friends-activity/?max=100 What's Happening?] {{-}} Modify the last number on the URL to the number of activities to be displayed.
+
* [https://scratch.mit.edu/messages/ajax/friends-activity/?max=100 What's Happening?] {{-}} Returns the specified number of the activities of the Scratchers' you're following.  
  
 
==Projects==
 
==Projects==
* [http://scratch.mit.edu/api/v1/project/(project_id)/?format=json General project data]  
+
* [http://scratch.mit.edu/api/v1/project/(project_id)/?format=json General project data] {{-}} Returns you the general data of the specified project.
* [http://scratch.mit.edu/site-api/comments/project/(project_id)/?page=(page_number) Comments on any given project]  
+
* [http://scratch.mit.edu/site-api/comments/project/(project_id)/?page=(page_number) Comments on any given project] {{-}} Returns the project comments of a specified project.
  
 
==Studios==
 
==Studios==
* [http://scratch.mit.edu/site-api/comments/gallery/(studio_id)/?page=(page_number) Comments on any given studio]
+
* [http://scratch.mit.edu/site-api/comments/gallery/(studio_id)/?page=(page_number) Comments on any given studio] Returns the studio comments of a specified studio.
* [http://scratch.mit.edu/site-api/projects/in/(studio_id)/(page_number) Projects in any given studio]  
+
* [http://scratch.mit.edu/site-api/projects/in/(studio_id)/(page_number) Projects in any given studio] Returns the projects of a specified studio.
* [http://scratch.mit.edu/site-api/galleries/ Studios you curates]
+
* [http://scratch.mit.edu/site-api/galleries/ Studios you curates] {{-}} Returns a list of studios that you curates.
  
 
==Users==
 
==Users==
* [http://scratch.mit.edu/messages/ajax/user-activity/?user=(username)&max=100 What (username) is doing]   
+
* [http://scratch.mit.edu/messages/ajax/user-activity/?user=(username)&max=100 What (username) is doing]  {{-}} Returns the specified number of activities of a specified Scratcher.
* [http://scratch.mit.edu/site-api/comments/user/(username)/ User profile comments]
+
* [http://scratch.mit.edu/site-api/comments/user/(username)/ User profile comments] {{-}} Returns the profile comments of a specified Scratcher.
* [http://scratch.mit.edu/site-api/users/all/(username)/ User's Featured Project]
+
* [http://scratch.mit.edu/site-api/users/all/(username)/ User's Featured Project] {{-}} Returns a specified Scratcher's featured project.
* [http://scratch.mit.edu/api/v1/user/?offset=(user_number_to_start_at)&limit=(number_of_peoples_to_show)&format=json List of users]  
+
* [http://scratch.mit.edu/api/v1/user/?offset=(user_number_to_start_at)&limit=(number_of_peoples_to_show)&format=json List of users] {{-}} Returns the list of users on Scratch, starting at the specified user ID.
  
 
==Sending Data==
 
==Sending Data==
* [http://scratch.mit.edu/site-api/users/followers/(username_to_follow)/add/?usernames=(your_username) Following someone]
+
* [http://scratch.mit.edu/site-api/users/followers/(username_to_follow)/add/?usernames=(your_username) Follow someone]  
* [http://scratch.mit.edu/site-api/users/followers/(username_to_follow)/remove/?usernames=(your_username) Unfollowing someone]
+
* [http://scratch.mit.edu/site-api/users/followers/(username_to_follow)/remove/?usernames=(your_username) Unfollow someone]
 
* [http://scratch.mit.edu/discuss/subscription/topic/(topic_id)/add/ Follow a topic]
 
* [http://scratch.mit.edu/discuss/subscription/topic/(topic_id)/add/ Follow a topic]
 
* [http://scratch.mit.edu/discuss/subscription/topic/(topic_id)/remove/ Unfollow a topic]
 
* [http://scratch.mit.edu/discuss/subscription/topic/(topic_id)/remove/ Unfollow a topic]

Revision as of 13:36, 20 April 2015

Scratch APIs

Certain URLs from the Scratch Website, when visited, sends a request to the servers or get a particular data. Here is a documentation that lists some of these URLs. Most of the URLs have to be modified before a specified request can be sent.

Front Page

  • What's Happening? — Returns the specified number of the activities of the Scratchers' you're following.

Projects

Studios

Users

Sending Data

Miscellaneous

Cookies help us deliver our services. By using our services, you agree to our use of cookies.