Discuss Scratch

Turtsles
Scratcher
41 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
500+ 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
500+ 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 | 1150+ posts | New 3D pen digit animation project out:




I'm part of The Forum Helpers!


Sid72020123
Scratcher
100+ 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.

Visit my website made by me in HTML, CSS and JS: https://sid72020123.github.io/
from scratchconnect import ScratchConnect
scratch = ScratchConnect("Username", "Password")
user = scratch.connect_user("Sid72020123")
user.follow()
user.post_comment(content="Hi!")
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

Hi, I'm ajsya!

Owner of several dead shops, Notable Chair, Scratch Wiki Editor, Developer, and Gamer.

| Roblox | GitHub | Wiki | My Posts | Scratch Empires | Scratch Weather App | Minecraft Server Pinger |

Before creating a new topic on the forums search Ocular to see if one already exists!

Sid72020123
Scratcher
100+ 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

Visit my website made by me in HTML, CSS and JS: https://sid72020123.github.io/
from scratchconnect import ScratchConnect
scratch = ScratchConnect("Username", "Password")
user = scratch.connect_user("Sid72020123")
user.follow()
user.post_comment(content="Hi!")
beanyboy512
Scratcher
100+ posts

Scratch Message Count

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

Hello and cya

Powered by DjangoBB

Standard | Mobile