Discuss Scratch

Turtsles
Scratcher
58 posts

Scratch Message Count

To view the message count using ScratchAPI you go here.

https://api.scratch.mit.edu/users/Turtsles/messages/count/

But using getrequest or scratchclient in python it resuts as 0 messages no matter what, why is this?

when green flag clicked
say [Kumquats are nice] for (2) secs

They don't eat signatures! Just relaxxxx



























or maybe they will destroy all of scratch >
dhuls
Scratcher
1000+ posts

Scratch Message Count

Because someone was spamming this endpoint, scripts are now blocked from using it.

Last edited by dhuls (Jan. 16, 2022 18:36:50)

SansStudios
Scratcher
1000+ posts

Scratch Message Count

dhuls wrote:

Because someone was spamming this endpoint, scripts are now blocked from using it.

Woah really? Is there a source post I can get?

scratchcloud
Click above to check it out! I've worked on it for over a year!























Just like sudden sadness comes hangin' on the breeze
Chiroyce
Scratcher
1000+ posts

Scratch Message Count

SansStudios wrote:

Woah really? Is there a source post I can get?
deleted, sadly. I think it was because the person who made the topic also gave directions on how to avoid the block.

related: https://scratch.mit.edu/discuss/post/5528026, https://scratch.mit.edu/discuss/post/5527647

Last edited by Chiroyce (Jan. 17, 2022 03:06:21)








April Fools' topics:
New Buildings in Scratch's headquarters
Give every Scratcher an M1 MacBook Air
Scratch should let users edit other Scratchers' projects
Make a statue for Jeffalo
Scratch Tech Tips™
Make a Chiroyce statue emoji


<img src=“x” onerror=“alert('XSS vulnerability discovered')”>

this is a test sentence
SansStudios
Scratcher
1000+ posts

Scratch Message Count

Chiroyce wrote:

deleted, sadly. I think it was because the person who made the topic also gave directions on how to avoid the block.

related: https://scratch.mit.edu/discuss/post/5528026, https://scratch.mit.edu/discuss/post/5527647

Thanks for the topics

I really don't understand why people need to spam the API for their cloud projects. It's not hard to use call-response in projects (the cloud servers are websockets ). Oh well.

Last edited by SansStudios (Jan. 17, 2022 03:24:55)


scratchcloud
Click above to check it out! I've worked on it for over a year!























Just like sudden sadness comes hangin' on the breeze
Chiroyce
Scratcher
1000+ posts

Scratch Message Count

SansStudios wrote:

I really don't understand why people need to spam the API for their cloud projects. It's not hard to use call-response in projects (the cloud servers are websockets :rolleyes ). Oh well.
It's for live messag counts, so the project updates automatically, for that they'll have to get the count every 3-5 seconds or so, some even used sub-zero delays, which means around 10 requests a second







April Fools' topics:
New Buildings in Scratch's headquarters
Give every Scratcher an M1 MacBook Air
Scratch should let users edit other Scratchers' projects
Make a statue for Jeffalo
Scratch Tech Tips™
Make a Chiroyce statue emoji


<img src=“x” onerror=“alert('XSS vulnerability discovered')”>

this is a test sentence
helloworldbyeworld
Scratcher
1000+ posts

Scratch Message Count

Chiroyce wrote:

SansStudios wrote:

I really don't understand why people need to spam the API for their cloud projects. It's not hard to use call-response in projects (the cloud servers are websockets :rolleyes ). Oh well.
It's for live messag counts, so the project updates automatically, for that they'll have to get the count every 3-5 seconds or so, some even used sub-zero delays, which means around 10 requests a second
And they say you shouldn't make that many requests.

Helloworldbyeworld | 1200+ posts
Have a great day
Sid72020123
Scratcher
500+ posts

Scratch Message Count

Turtsles wrote:

To view the message count using ScratchAPI you go here.

https://api.scratch.mit.edu/users/Turtsles/messages/count/

But using getrequest or scratchclient in python it resuts as 0 messages no matter what, why is this?
You can still get the real messages count. The messages count endpoint needs some headers (eg. user-agent) for it to give the messages count. This messages count feature works in ScratchConnect but not in ScratchClient because it's owner has not updated that library.

Hello!
ajsya
Scratcher
1000+ posts

Scratch Message Count

Sid72020123 wrote:

Turtsles wrote:

To view the message count using ScratchAPI you go here.

https://api.scratch.mit.edu/users/Turtsles/messages/count/

But using getrequest or scratchclient in python it resuts as 0 messages no matter what, why is this?
You can still get the real messages count. The messages count endpoint needs some headers (eg. user-agent) for it to give the messages count. This messages count feature works in ScratchConnect but not in ScratchClient because it's owner has not updated that library.
ScratchConnect plug? lol

Feel free to message me on my profile if you need to tell me something/want someone to talk to.

Hi, I'm ajsya!

| GitHub | Wiki | My Posts |

Before creating a new topic on the forums search Ocular to see if one already exists!ˇ
Sid72020123
Scratcher
500+ posts

Scratch Message Count

ajsya wrote:

Sid72020123 wrote:

Turtsles wrote:

To view the message count using ScratchAPI you go here.

https://api.scratch.mit.edu/users/Turtsles/messages/count/

But using getrequest or scratchclient in python it resuts as 0 messages no matter what, why is this?
You can still get the real messages count. The messages count endpoint needs some headers (eg. user-agent) for it to give the messages count. This messages count feature works in ScratchConnect but not in ScratchClient because it's owner has not updated that library.
ScratchConnect plug? lol
LOL

Hello!
beanyboy512
Scratcher
500+ posts

Scratch Message Count

i checked gdpr0000001's account (the glitched one) and they have 0 messages

The image below is publicly controlled, i may remove it if i do not condone what it is

Powered by DjangoBB