Discuss Scratch

MegaApuTurkUltra
Scratcher
1000+ posts

Scratch APIs

Cool list! I think you should include the required post data in the follow request though

$(".box-head")[0].textContent = "committing AT crimes since $whenever"
theonlygusti
Scratcher
1000+ posts

Scratch APIs

MegaApuTurkUltra wrote:

Cool list! I think you should include the required post data in the follow request though
ditto

Firedrake969
Scratcher
1000+ posts

Scratch APIs

It was a GET, so there wasn't any data I could find from Chrome's console.

'17 rickoid

bf97b44a7fbd33db070f6ade2b7dc549
theonlygusti
Scratcher
1000+ posts

Scratch APIs

Firedrake969 wrote:

It was a GET, so there wasn't any data I could find from Chrome's console.
Fiddler?

Firedrake969
Scratcher
1000+ posts

Scratch APIs

Probably wouldn't give anything different, and I'm not going to download it just for this.

'17 rickoid

bf97b44a7fbd33db070f6ade2b7dc549
__init__
Scratcher
1000+ posts

Scratch APIs

Firedrake969 wrote:

It was a GET, so there wasn't any data I could find from Chrome's console.
Firefox?

thisandagain pls explain
Firedrake969
Scratcher
1000+ posts

Scratch APIs

I'm fairly sure it would show the same thing (and besides, I don't have Firefox)

'17 rickoid

bf97b44a7fbd33db070f6ade2b7dc549
theonlygusti
Scratcher
1000+ posts

Scratch APIs

Firedrake969 wrote:

I'm fairly sure it would show the same thing (and besides, I don't have Firefox)
You're seriously lacking in resources: how can you not have fiddler or firefox?

firedrake969_test
Scratcher
500+ posts

Scratch APIs

I see no need to have them, as Chrome has everything I currently need. If I need Fiddler, I'll get it, but Chrome can capture HTTP requests as well as I need to capture them.

Alt account of Firedrake969.

Rocket II: A black and white bitmap space game!

I seek not fame, but education.

;
__init__
Scratcher
1000+ posts

Scratch APIs

firedrake969_test wrote:

I see no need to have them, as Chrome has everything I currently need. If I need Fiddler, I'll get it, but Chrome can capture HTTP requests as well as I need to capture them.
You can't edit them though.

thisandagain pls explain
firedrake969_test
Scratcher
500+ posts

Scratch APIs

__init__ wrote:

firedrake969_test wrote:

I see no need to have them, as Chrome has everything I currently need. If I need Fiddler, I'll get it, but Chrome can capture HTTP requests as well as I need to capture them.
You can't edit them though.

Alt account of Firedrake969.

Rocket II: A black and white bitmap space game!

I seek not fame, but education.

;
__init__
Scratcher
1000+ posts

Scratch APIs

firedrake969_test wrote:

__init__ wrote:

firedrake969_test wrote:

I see no need to have them, as Chrome has everything I currently need. If I need Fiddler, I'll get it, but Chrome can capture HTTP requests as well as I need to capture them.
You can't edit them though.
What's the use of viewing the HTTP requests if you can't edit them?

thisandagain pls explain
firedrake969_test
Scratcher
500+ posts

Scratch APIs

I can do what I need to with them. Anyways…

/offtopic

Anyone got any suggestions/improvements/additions?

Last edited by firedrake969_test (March 9, 2015 22:44:23)


Alt account of Firedrake969.

Rocket II: A black and white bitmap space game!

I seek not fame, but education.

;
PullJosh
Scratcher
1000+ posts

Scratch APIs

firedrake969_test wrote:

I can do what I need to with them. Anyways…

/offtopic

Anyone got any suggestions/improvements/additions?
Suggestions? Well…

MegaApuTurkUltra wrote:

Cool list! I think you should include the required post data in the follow request though

But, in all seriousness, that should probably be added. I'll see if I can figure it out for you.
PullJosh
Scratcher
1000+ posts

Scratch APIs

To follow (or unfollow) someone:
PUT http://scratch.mit.edu/site-api/users/followers/[user to follow]/[add/remove]]/?usernames=[Your username] HTTP/1.1
Host: scratch.mit.edu
Connection: keep-alive
Content-Length: 153
Accept: application/json, text/javascript, */*; q=0.01
Origin: http://scratch.mit.edu
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.3 Safari/537.36
Content-Type: application/json
Referer: http://scratch.mit.edu/users/firedrake969_test/
Accept-Encoding: gzip, deflate, sdch
Accept-Language: en-US,en;q=0.8

{"id":"[user to follow]"}

Last edited by PullJosh (March 10, 2015 20:32:39)

PullJosh
Scratcher
1000+ posts

Scratch APIs

Is there an api to add stuff to your backpack?
technoboy10
Scratcher
1000+ posts

Scratch APIs

PullJosh wrote:

Is there an api to add stuff to your backpack?
I believe that's a PUT request as well, but I don't remember.


Interesting…

http://scratch.mit.edu/projects/[project id]/cloud-data.js

Last edited by technoboy10 (March 9, 2015 23:56:40)


trans rights are human rights
MegaApuTurkUltra
Scratcher
1000+ posts

Scratch APIs

technoboy10 wrote:

PullJosh wrote:

Is there an api to add stuff to your backpack?
I believe that's a PUT request as well, but I don't remember.


Interesting…

http://scratch.mit.edu/projects/[project id]/cloud-data.js
Yeah, it is. Apparently cloud data requests need a token, which so far, I've only gotten out of the project page (it's hardcoded there, but changes every reload I think), but apparently there's something else I'm missing because my cloud change attempts aren't working.

$(".box-head")[0].textContent = "committing AT crimes since $whenever"
MathWizz
Scratcher
100+ posts

Scratch APIs

Please don't post your session ID unless you want someone else to use scratch for you.
http://i.imgur.com/7miPp2v.png

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)
MegaApuTurkUltra
Scratcher
1000+ posts

Scratch APIs

MathWizz wrote:

Please don't post your session ID unless you want someone else to use scratch for you.
http://i.imgur.com/7miPp2v.png
You probably shouldn't post your csrf token either, just to be safe.

]In case anyone's interested, I have guides for posting and retrieving comments

$(".box-head")[0].textContent = "committing AT crimes since $whenever"

Powered by DjangoBB