Discuss Scratch

drmcw
Scratcher
1000+ posts

Scratch Asset API

Has anyone used the Scratch API for assets? e.g.
http://scratch.mit.edu.ezproxy.canberra.edu.au/internalapi/asset/510da64cf172d53750dffd23fbf73563/get/
as described here.

The number between asset and get in the URL should be the MD5 hash for a background image in a project which was retrieved from the project's json file using the project api which does work.
When I try and get a response from the asset API I just get a 404 Not Found exception. Has anyone used this api successfully?

10 !
ScratchVaders or Galaga?
Maybe Eliza can help you decide?
ShinyRedGenesect
New Scratcher
99 posts

Scratch Asset API

Doesn't that vandalize the privacy of others?


http://www.shiny-red-genesect.hostei.com
drmcw
Scratcher
1000+ posts

Scratch Asset API

ShinyRedGenesect wrote:

Doesn't that vandalize the privacy of others?
How can it when it's not private?

10 !
ScratchVaders or Galaga?
Maybe Eliza can help you decide?
Gamer59620
New Scratcher
2 posts

Scratch Asset API

drmcw wrote:

ShinyRedGenesect wrote:

Doesn't that vandalize the privacy of others?
How can it when it's not private?
Well, maybe the person has some private stuff, like some pictures that he/she made. That's just an example.
drmcw
Scratcher
1000+ posts

Scratch Asset API

Gamer59620 wrote:

drmcw wrote:

ShinyRedGenesect wrote:

Doesn't that vandalize the privacy of others?
How can it when it's not private?
Well, maybe the person has some private stuff, like some pictures that he/she made. That's just an example.
Well if it's shared its no longer private is it? If you want to argue about Scratch and its privacy policies then please do it on another topic.

10 !
ScratchVaders or Galaga?
Maybe Eliza can help you decide?
Hardmath123
Scratcher
1000+ posts

Scratch Asset API

drmcw wrote:

Gamer59620 wrote:

drmcw wrote:

ShinyRedGenesect wrote:

Doesn't that vandalize the privacy of others?
How can it when it's not private?
Well, maybe the person has some private stuff, like some pictures that he/she made. That's just an example.
Well if it's shared its no longer private is it? If you want to argue about Scratch and its privacy policies then please do it on another topic.
It doesn't work for projects that aren't shared. So we're safe.

I used it in the original Pythonic snapin8r (the new one takes ZIPs instead).
drmcw
Scratcher
1000+ posts

Scratch Asset API

Hardmath123 wrote:

drmcw wrote:

Gamer59620 wrote:

drmcw wrote:

ShinyRedGenesect wrote:

Doesn't that vandalize the privacy of others?
How can it when it's not private?
Well, maybe the person has some private stuff, like some pictures that he/she made. That's just an example.
Well if it's shared its no longer private is it? If you want to argue about Scratch and its privacy policies then please do it on another topic.
It doesn't work for projects that aren't shared. So we're safe.

I used it in the original Pythonic snapin8r (the new one takes ZIPs instead).

Any idea why I get a 404 error for the api. The MD5 is taken from the json file for a stage backdrop in a shared project so I assume is correct.

10 !
ScratchVaders or Galaga?
Maybe Eliza can help you decide?
MathWizz
Scratcher
100+ posts

Scratch Asset API

You didn't include the .png or .svg or other extension. This is correct: http://scratch.mit.edu.ezproxy.canberra.edu.au/internalapi/asset/510da64cf172d53750dffd23fbf73563.png/get/ (it's white so you can't see it on a white background.)

running Chromium 42.0.2311.90 with Flash Player 15.0.0.189 on Arch Linux 3.19.5-1-ck
MathWizzJsScratch && sb.js & Amber (coming soon! maybe)
blob8108
Scratcher
1000+ posts

Scratch Asset API

@drmcw Did you include the extension?

tosh · slowly becoming a grown-up adult and very confused about it
drmcw
Scratcher
1000+ posts

Scratch Asset API

I didn't add the extension! I did wonder about that but thought it odd to add .png or .wav etc. when the api implies it's purely md5. Oh well.
Thanks for your help.

10 !
ScratchVaders or Galaga?
Maybe Eliza can help you decide?
drmcw
Scratcher
1000+ posts

Scratch Asset API

MathWizz wrote:

You didn't include the .png or .svg or other extension. This is correct: http://scratch.mit.edu.ezproxy.canberra.edu.au/internalapi/asset/510da64cf172d53750dffd23fbf73563.png/get/ (it's white so you can't see it on a white background.)
Yes it's just a default project for testing. And there I was explicitly removing the extension as I thought it wasn't needed!
Thanks.

10 !
ScratchVaders or Galaga?
Maybe Eliza can help you decide?
drmcw
Scratcher
1000+ posts

Scratch Asset API

Yep. Just tried it and that works.
Thanks again.

10 !
ScratchVaders or Galaga?
Maybe Eliza can help you decide?

Powered by DjangoBB