Discuss 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

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]

I can not work
do you have new code??
wuhunghsiang
Scratcher
7 posts

RESTful Cat [REST for Scratch]

This block should exist:
6R5LWfHwkowcEOdVZXEh0PJjLRalh7Qq2CBoWrL6C2Q5t8eD8FMbiCrNWCgvEkVo77A04KitbOMusWE4ZJyHSc7oIqjiY7p8oOfU

What is it???
JGames101
Scratcher
100+ posts

RESTful Cat [REST for Scratch]

averysumner wrote:

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

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
Add :: Extension to the end of your blocks so that they are coloured correctly.
frances2005
Scratcher
500+ posts

RESTful Cat [REST for Scratch]

averysumner wrote:

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

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

sounds cool.

★★★★★★★Welcome to Frances2005★★★★★★★★
No F4FSeason 2Proud owner of 100+ Beanie Boos700+ followers450+ Forum PostsOfficial Turtie HelperGame DeveloperSince 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>::extension
And in the input there should be an http request.
(ITS A JOKE)
(PREVIEW)

Last edited by ScriptedAwesome (Sept. 18, 2017 20:00:34)

Powered by DjangoBB