< 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.  
+
Certain URLs on the Scratch Website, when visited, sends a request to the servers or get specified data. Here is a documentation that lists some of these URLs. Most of these URLs have to be modified before a specified request can be sent. When opening these URLs, replace the parts that are surrounded in brackets and are in written in capitals, e.g. '(USERNAME)', if there is any.
  
 
==Front Page==
 
==Front Page==
* [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.  
+
* [https://scratch.mit.edu/messages/ajax/friends-activity/?max=(NUMBER_OF_ACTIVITIES) 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] {{-}} Returns you the general data of the specified project.
+
* [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] {{-}} Returns the project comments of a specified 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] Returns the studio comments of a specified 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] Returns the projects of a specified 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] {{-}} Returns a list of studios that 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]  {{-}} Returns the specified number of activities of a specified Scratcher.
+
* [http://scratch.mit.edu/messages/ajax/user-activity/?user=(USERNAME)&max=(NUMBER_OF_ACTIVITIES) 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] {{-}} Returns the profile comments of a specified Scratcher.
+
* [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] {{-}} Returns a specified Scratcher'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]  {{-}} Returns the list of users on Scratch, starting at the specified user ID.  
+
* [http://scratch.mit.edu/api/v1/user/?offset=(USER_ID_TO_START_AT)&limit=(NUMBER_OF_PEOPLES_TO_DISPLAY)&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) Follow someone]  
+
* [http://scratch.mit.edu/site-api/users/followers/(USERNAME)/add/?usernames=(YOUR_USERNAME) Follow someone]  
* [http://scratch.mit.edu/site-api/users/followers/(username_to_follow)/remove/?usernames=(your_username) Unfollow someone]
+
* [http://scratch.mit.edu/site-api/users/followers/USERNAME/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]
  
 
==Miscellaneous==
 
==Miscellaneous==
 
* [https://scratch.mit.edu/messages/ajax/get-message-count/ Message Count] {{-}} Returns the number of your new messages.
 
* [https://scratch.mit.edu/messages/ajax/get-message-count/ Message Count] {{-}} Returns the number of your new messages.

Revision as of 23:33, 20 April 2015

Scratch APIs

Certain URLs on the Scratch Website, when visited, sends a request to the servers or get specified data. Here is a documentation that lists some of these URLs. Most of these URLs have to be modified before a specified request can be sent. When opening these URLs, replace the parts that are surrounded in brackets and are in written in capitals, e.g. '(USERNAME)', if there is any.

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.