Discourse Glitch API Discussion thread

Continuation from More Benefits from Helping

2 Likes

Does anybody know if there are any rate limits?

There is on their API, but not through SMTP.

1 Like

I’m doing this using IMAP/SMTP

Was that test topic anything to do with this? @ihack2712 :joy:

Defintely not! :joy:

Yes it was, expect like two-three more of those :stuck_out_tongue:

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?

Looks like it also sends for new topics:

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 :joy:

I am Having a Tough time Reading the API

Don’t read it, it is useless. :frowning: (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

1 Like

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

1 Like

That page even describes how to request a JSON file from a server (e.g. Discourse api) and then parse it :slight_smile:

Damn it, I keep getting this error :frowning:

I’m not sending the right headers in the mail

1 Like

Who knows. Glitch might implement there own method! :joy:

Hello World, this is an automated message.

I F*CKING DID IT!     

3 Likes

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 :joy:

1 Like

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

1 Like


Used The find Tool For what i might Need

1 Like

Getting a lot closer to actually be able to receiving mail on node now!

3 Likes

I’ll be using outlook to receive mail, seems like that is working! Nvm.

1 Like

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 :frowning:

:eyes:



Looking into another solution as well

Im looking into retrieving data from the API and use Puppeteer to send messages.

1 Like

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 /presence iirc There are different endpoints for it.

1 Like

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!

1 Like

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.

2 Likes

test test test test 

I CAN FINALLY RECEIVE EMAILS!

1 Like

Better edit your post, before someone flags it as inappropriate.

Thx, I got a bit overjoyed :joy:

1 Like

I can understand that and relate to that :joy:

Only problem is I can’t get the contents of the emails, I’m still working on that :joy: But I got the emails delivered at least.

Spent 4 hours on that :joy:

1 Like

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.

1 Like

Sure
20 chars 20 chars

Can you send me your discord username, I’ll send you mail and go signal there :slight_smile: Ty

Misly#8067

Now receiving messages!

2 Likes

@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 :joy:

I sent that to myself xd

1 Like

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.

2 Likes