Discuss Scratch

st19_galla
Scratcher
1000+ posts

Studio/Comment API question

Does anyone know if there is an API or script for adding a project to a studio and for commenting a message somewhere on the site? Thanks

⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ | I'ᗰ ᔕT19_Gᗩᒪᒪᗩ! | ᑎEᗯ TO ᔕᑕᖇᗩTᑕᕼ? ᐯIᔕIT TᕼE ᗯEᒪᑕOᗰIᑎG ᑕOᗰᗰITTEE! |
⠀⠀⠀⠀⠀⠀⠀| ᗩ GᑌIᗪE TO (ᑎOT) ᑎEᑕᖇOᑭOᔕTIᑎG! | ᐯIᔕIT TᕼE ᔕᑕᖇᗩTᑕᕼ ᗯIKI ᖴOᖇ ᗩᑎY ᑫᑌEᔕTIOᑎᔕ! |

⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ This signature is looking a bit… вℓυє, why don't we add a bit of яє∂?

⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ Đ₳Ɽ₦, ₳₦ ɆVłⱠ ₭Ʉ₥QɄ₳₮ ł₴ Ɇ₳₮ł₦₲ ₥Ɏ ₴ł₲₦₳₮ɄⱤɆ!
Gaza101
Scratcher
500+ posts

Studio/Comment API question

Dylan's API should probably have you covered.

If you're looking for an easy way to read comments, I've written a small interface for that.

Gaza101: retired member of the Scratch 2.0 Transition Team


Dylan5797
Scratcher
1000+ posts

Studio/Comment API question

Note: to install please read my sig.

MathWizz
Scratcher
100+ posts

Studio/Comment API question

Dylan5797 wrote:

Note: to install please read my sig.
The ‘requests’ url seems to be broken.

Last edited by MathWizz (Aug. 29, 2016 04:02:09)


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

Studio/Comment API question

Dylan5797 wrote:

Note: to install please read my sig.
The new version of scratchapi is now on PyPi, so you can ‘pip3 install scratchapi’ again.

who needs signatures
Dylan5797
Scratcher
1000+ posts

Studio/Comment API question

BookOwl wrote:

Dylan5797 wrote:

Note: to install please read my sig.
The new version of scratchapi is now on PyPi, so you can ‘pip3 install scratchapi’ again.
Oops, forgot to change my sig

gdpr533f604550b2f20900645890
Scratcher
1000+ posts

Studio/Comment API question

You can probably find out the request URIs and related information, such as request body parameters, using your browser's console. I use Firefox, and it allows me to inspect the raw request data. (I click “Edit and resend” to view the information). Open your console and make a request, and the URI should be printed on the screen. I don't know what browser you use, but it probably has such features.

I know that the URI for profile commenting is:
https://scratch.mit.edu/site-api/comments/user/username/add/
The content body for it is:
{"content":"insert content here","parent_id":"","commentee_id":""}

Powered by DjangoBB