All I’d like to know is how to make a pastebin POST request, and it sucessfully works?
Heres my current code:
local http = game:GetService("HttpService")
local url= 'https://pastebin.com/kHqCU9Di'
local data = {
['Two'] = "Not hello world!"
}
http:PostAsync(url,http:JSONEncode(data), Enum.HttpContentType.ApplicationUrlEncoded)
print("sucessish?")
Is prints “sucessish?” but the code on the side does not change, I’m not even a beginner to HTTP so I’d have no clue what to go off of, thank you!
(Let me know if I’m unclear, I don’t know how to word my issue properly, I feel.)
I have not examined Pastebin’s API before, but it seems you aren’t posting to a valid endpoint.
You are trying to create a new paste via their API, correct?
Unfortunately, Pastebin does not provide an endpoint for updating. You could delete a paste and create another one, but their current API does not offer a way to edit.
I will, but i need a site I’m able to edit raw data and such, as I’m trying to store a players UserId/Username, and I was told trello isn’t meant to do such a thing. ( A small group of people, like beta testers. ) Datastores aren’t going to work for another plan I have with this.
Just a tip, I do not suggest interacting w/ APIs via HTTPService, it’s a pain.
Rather, setup a proxy-like system with NodeJS + Nginx to easily communicate with Spreadsheets API, and all you have to do is call it via HTTPService and provide a key as a means of authentication + security
I would suggest Trello personally. I actually use Trello for school, keeping up with my games, and a lot of other stuff. I also sometimes use it for data storage although Datastores tend to be enough.
Yes but it is not to be used as a database afaik shouldnt be treated like one. Ive only ever used it for off-sight bans ex: you’re on vacation and you need to ban an exploiter, but you do not have time to download roblox, sign in, and do 2 factor verification.