Discuss Scratch
- Discussion Forums
- » Developing Scratch Extensions
- » RESTful Cat [REST for Scratch]
- averysumner
- Scratcher
41 posts
RESTful Cat [REST for Scratch]
I made a scratch extension that adds REST API functionality to Scratch. It uses XMLHttpRequest and FormData. To import it, just go to http://scratchx.org/#scratch, then go to load experimental extension. Then copy and paste http://uploads.averysumner.net/programs/RESTful-Cat.js into the paste experimental extension link text box. Then you're done! Here are some brief explanations on the blocks:
ADD ELEMENT BLOCK
Adds an element to your FormData.
OPEN REQUEST BLOCK
Opens a XMLHttpRequest with the method and link provided.
SEND REQUEST BLOCK
Sends a XMLHttpRequest with your FormData.
ADD REQUEST HEADER BLOCK
Adds a request header to your XMLHttpRequest.
Here's the GitHub link, if you want to report any bugs or contribute: https://github.com/averysumner/RESTful-Cat/tree/master
ADD ELEMENT BLOCK
add element (element name) (element value)
Adds an element to your FormData.
OPEN REQUEST BLOCK
open request (method) (link)
Opens a XMLHttpRequest with the method and link provided.
SEND REQUEST BLOCK
send request
Sends a XMLHttpRequest with your FormData.
ADD REQUEST HEADER BLOCK
add request header (header name) (header value)
Adds a request header to your XMLHttpRequest.
Here's the GitHub link, if you want to report any bugs or contribute: https://github.com/averysumner/RESTful-Cat/tree/master
Last edited by averysumner (Oct. 4, 2016 02:52:09)
This block should exist:
<(string) includes (substring)>
6R5LWfHwkowcEOdVZXEh0PJjLRalh7Qq2CBoWrL6C2Q5t8eD8FMbiCrNWCgvEkVo77A04KitbOMusWE4ZJyHSc7oIqjiY7p8oOfU
- savaka
- Scratcher
1000+ posts
RESTful Cat [REST for Scratch]
if it's finished make sure you submit in directory
- wuhunghsiang
- Scratcher
7 posts
RESTful Cat [REST for Scratch]
This block should exist:
6R5LWfHwkowcEOdVZXEh0PJjLRalh7Qq2CBoWrL6C2Q5t8eD8FMbiCrNWCgvEkVo77A04KitbOMusWE4ZJyHSc7oIqjiY7p8oOfU
What is it???
6R5LWfHwkowcEOdVZXEh0PJjLRalh7Qq2CBoWrL6C2Q5t8eD8FMbiCrNWCgvEkVo77A04KitbOMusWE4ZJyHSc7oIqjiY7p8oOfU
What is it???
- JGames101
- Scratcher
100+ posts
RESTful Cat [REST for Scratch]
http://scratchx.org/#scratch, then go to load experimental extension. Then copy and paste http://uploads.averysumner.net/programs/RESTful-Cat.js into the paste experimental extension link text box. Then you're done! Here are some brief explanations on the blocks:Add :: Extension to the end of your blocks so that they are coloured correctly. I made a scratch extension that adds REST API functionality to Scratch. It uses XMLHttpRequest and FormData. To import it, just go to
ADD ELEMENT BLOCKadd element (element name) (element value)
Adds an element to your FormData.
OPEN REQUEST BLOCKopen request (method) (link)
Opens a XMLHttpRequest with the method and link provided.
SEND REQUEST BLOCKsend request
Sends a XMLHttpRequest with your FormData.
ADD REQUEST HEADER BLOCKadd request header (header name) (header value)
Adds a request header to your XMLHttpRequest.
Here's the GitHub link, if you want to report any bugs or contribute: https://github.com/averysumner/RESTful-Cat/tree/master
- frances2005
- Scratcher
500+ posts
RESTful Cat [REST for Scratch]
http://scratchx.org/#scratch, then go to load experimental extension. Then copy and paste http://uploads.averysumner.net/programs/RESTful-Cat.js into the paste experimental extension link text box. Then you're done! Here are some brief explanations on the blocks:I made a scratch extension that adds REST API functionality to Scratch. It uses XMLHttpRequest and FormData. To import it, just go to
ADD ELEMENT BLOCKadd element (element name) (element value)
Adds an element to your FormData.
OPEN REQUEST BLOCKopen request (method) (link)
Opens a XMLHttpRequest with the method and link provided.
SEND REQUEST BLOCKsend request
Sends a XMLHttpRequest with your FormData.
ADD REQUEST HEADER BLOCKadd request header (header name) (header value)
Adds a request header to your XMLHttpRequest.
Here's the GitHub link, if you want to report any bugs or contribute: https://github.com/averysumner/RESTful-Cat/tree/master
sounds cool.
★★★★★★★Welcome to Frances2005★★★★★★★★
No F4F│Season 2│Proud owner of 100+ Beanie Boos│700+ followers│450+ Forum Posts│Official Turtie Helper│Game Developer│Since 4/16/17
hello I don't go on here much anymore or at least for now..
credit to @SuperNautilus for stars,@SolarWind12 for colored text guide, and coolsymbol for symbols
- ScriptedAwesome
- Scratcher
1000+ posts
RESTful Cat [REST for Scratch]
<(<(<(<•::sensing>)>::sensing)>)::sensing>::extensionAnd in the input there should be an http request.
(ITS A JOKE)
(PREVIEW)
Last edited by ScriptedAwesome (Sept. 18, 2017 20:00:34)
- Discussion Forums
- » Developing Scratch Extensions
- » RESTful Cat [REST for Scratch]