Discuss Scratch

IronBill05
Scratcher
100+ posts

Can you post comments on a user's profile using the Scratch API?

I've been making a website that lets you view a user's profile and view their comments. I am trying to make it so that i can comment on a user's profile using the website, but i don't know much about the Scratch API. Can you help me?
starlightsparker
Scratcher
1000+ posts

Can you post comments on a user's profile using the Scratch API?

I am unsure if it is possible—But regardless, I do not believe that is permissible as of Scratch’s rules, for social actions performed by bots are not allowed.
han614698
Scratcher
1000+ posts

Can you post comments on a user's profile using the Scratch API?

Yes. It is a possible, though I don't really know how to do it.

starlightsparker wrote:

(#2)
I am unsure if it is possible—But regardless, I do not believe that is permissible as of Scratch’s rules, for social actions performed by bots are not allowed.
This is not bots - this is the user initiating the comment, just from a different medium then their profile.
starlightsparker
Scratcher
1000+ posts

Can you post comments on a user's profile using the Scratch API?

han614698 wrote:

This is not bots - this is the user initiating the comment, just from a different medium then their profile.
I am still not certain if commenting via the API would fall under social actions performed by bots
han614698
Scratcher
1000+ posts

Can you post comments on a user's profile using the Scratch API?

starlightsparker wrote:

(#4)

han614698 wrote:

This is not bots - this is the user initiating the comment, just from a different medium then their profile.
I am still not certain if commenting via the API would fall under social actions performed by bots
But there are no bots. You are making an API request from your account, similar to pressing post while on the studio page.
starlightsparker
Scratcher
1000+ posts

Can you post comments on a user's profile using the Scratch API?

han614698 wrote:

similar to pressing post while on the studio page.
Elaborate?
han614698
Scratcher
1000+ posts

Can you post comments on a user's profile using the Scratch API?

starlightsparker wrote:

(#6)

han614698 wrote:

similar to pressing post while on the studio page.
Elaborate?
when you press “post” it sends an api request which makes a comment


when you make an api request it posts a comment
Mryellowdoggy
Scratcher
1000+ posts

Can you post comments on a user's profile using the Scratch API?

Here is the documentation for the API from the Scratch Wiki: https://en.scratch-wiki.info/wiki/Scratch_API
I'm not sure if it has what you're looking for, but it's worth a read.
IronBill05
Scratcher
100+ posts

Can you post comments on a user's profile using the Scratch API?

Mryellowdoggy wrote:

Here is the documentation for the API from the Scratch Wiki: https://en.scratch-wiki.info/wiki/Scratch_API
I'm not sure if it has what you're looking for, but it's worth a read.
I did read it but it did only had tutorials for making comments on projects and studios.
SpyCoderX
Scratcher
1000+ posts

Can you post comments on a user's profile using the Scratch API?

IronBill05 wrote:

Mryellowdoggy wrote:

Here is the documentation for the API from the Scratch Wiki: https://en.scratch-wiki.info/wiki/Scratch_API
I'm not sure if it has what you're looking for, but it's worth a read.
I did read it but it did only had tutorials for making comments on projects and studios.
So, the api for comments on profiles:
POST https://scratch.mit.edu/site-api/comments/user/SpyCoderX/add/

This returns a json response like so:
{"content":"test","parent_id":"","commentee_id":""}
The parent and comentee ID change based on the parent comment and user. (I think)

This requires authentication.
Jeffalo
Scratcher
1000+ posts

Can you post comments on a user's profile using the Scratch API?

i highly recommend learning your browser's developer tools' network panel. you can perform an action (like posting a comment) and see all of the network calls associated. in chrome and firefox, you can even ‘copy the request as fetch’ and paste the code into javascript.

that said, i really don't recommend automating social actions or performing them from outside scratch's normal interface. those kinds of things cause real issues for the scratch team.
82BITMYSTERY
Scratcher
100+ posts

Can you post comments on a user's profile using the Scratch API?

There's actually a script on GitHub that was used to comment on the Scratch Team's profile while they were closed, so yes.
IronBill05
Scratcher
100+ posts

Can you post comments on a user's profile using the Scratch API?

This topic is now closed.
I found out how to post comments on profiles using the Scratch API. All that I am trying to do is figure out how to do the authentication process. If I continue to have problems with this, i might make another topic.

Powered by DjangoBB