Continuation from More Benefits from Helping
Does anybody know if there are any rate limits?
There is on their API, but not through SMTP.
I’m doing this using IMAP/SMTP
Was that test topic anything to do with this? @ihack2712
Defintely not!
Yes it was, expect like two-three more of those
Was kinda stupid, because I realized I won’t receive emails when I post test topics. I need a different account for that.
Why are you making test topics?
You see, I am wondering if support will be able to process requests even if we forward them via email as I am pretty sure it’s a verification thing. Like, they check the email against the account kind of thing
test reply
@ihack2712 @automator how have you set discourse to send you an email when someone makes a topic? Doesn’t it only send you one if you are watching a thread or get mentioned?
Ahh. You’ve turned on mailing list mode. Maybe make a separate email and account for the bot. I imagine getting every topic and post sent via email may get frustrating
I am Having a Tough time Reading the API
Don’t read it, it is useless. (from ihack2712 btw)
Their docs page takes about ten years to load, looks horrible, performs dreadful and I’m pretty sure it’s the same for the API itself.
Docs: docs.discourse.org
I really want to make an Example in Javascript
Example for what?
Json Parsing in javascript?
If you want to put your profile info on a page, you just need to make a request to the JSON file and parse it to get the stuff you need. Make them into variables. Then display them
yep looks like designed for big screens only
@Boofhead1000 Use this for reference on how to parse the JSON: https://www.w3schools.com/js/js_json_parse.asp
That page even describes how to request a JSON file from a server (e.g. Discourse api) and then parse it
Who knows. Glitch might implement there own method!
Hello World, this is an automated message.
I F*CKING DID IT!
Now I just need to be able to receive messages. I can’t use Google, because they’re being a d*ck about security and don’t let me login using node. So I have to find some sketchy email provider for this stuff, or I can probably just host my own email server.
Hello World, this is an automated message.
Ehm, that was not supposed to happen xd
I know how to parse Json and store it as a Var
I just want to Know what Variables i need to Look at to get the Info i want
I’ll be using outlook to receive mail, seems like that is working! Nvm.
I am Making an API that Grabs the Stats Just Reads The Json Summary And Returns it too A Person i will Send Code of a Version that you can Enter The User of Any User to Get their Stats
I Actually want to Do it
I’m using Haraka to build my own mail server that can receive updates from Glitch.
I’m making a plugin so whenever I receive a mail from glitch it will scan the mail and look for certain filters, if the filters match it will reply to that mail with an automated message.
The user endpoint was only (I think) endpoint that did not ask for authentication, will let you know if I find any more endpoints.
I think that account got banned?
Nevermind, it was tagged by the spamfilter
Looking into another solution as well
Im looking into retrieving data from the API and use Puppeteer to send messages.
Doesn’t the Discourse API need authentication?
Sorry, I’m talking about the API that isn’t publicly documented
We’re talking about the Discourse API, right?
Yeah, they have two APIs, one publicly documented, and one private API.
How is the Private API accessed?
It sends a session cookie when it attempts to access the private API, the private API starts with There are different endpoints for it./presence
iirc
I might create a guide on it, I’m a bit unsure of wheter or not I have the time for it.
Actually, I was wrong!!! It is the public API but without an authentication token, it contains a session token instead!
Wait, can you tell me how to obtain a public API key? Because https://support.glitch.com/user-api-key/new.
We don’t get to make them, we have session IDs which is obtained by logging into github.
test test test test
Better edit your post, before someone flags it as inappropriate.
Thx, I got a bit overjoyed
I can understand that and relate to that
Only problem is I can’t get the contents of the emails, I’m still working on that But I got the emails delivered at least.
Spent 4 hours on that
I can wait 4 more hours for getting the contents of the email, no problem.
XD
Is someone willing to send me a couple of emails on my reqest? it doesn’t matter what the content is, I just need to test the server so I can receive the mail body.
Sure
20 chars 20 chars
Can you send me your discord username, I’ll send you mail and go signal there Ty
Misly#8067
…
@anon43649539 you should have sent him something interesting to read, like how the creators of twitter and Facebook said something interesting as the first post on their platforms
I sent that to myself xd
Just waiting for Glitch to send me a mail now anytime.
Can you guys send me a bunch of topics where domain removal was the solution? I’ll use it to setup the automatic reply filters.
It seems like receiving part is working now! I’ll get started on the auto respond filter.
Current status:
It receives messages, and has all the necessary information to flag posts as domain removal requests. I just need to write an implementation.