hyphex / roblox-trello Goto Github PK
View Code? Open in Web Editor NEWRBLX OOP Trello API v1
License: The Unlicense
RBLX OOP Trello API v1
License: The Unlicense
Found an issue when attempting to create a new card on a list. I tested the POST url with Postman and got this. I was replied from the post request with invalid value for idList
so I changed idCard
with idList
and it worked in Main.lua
return (ConList.Card.new({name = name, idCardidList = parent:GetId()}, ConList["Board"], ConList["List"], ConList["Card"]))
Hello, I'm working on a "Contact Support" feature for my game and I want to use the Trello Card's comments section as a support chat room.
If it's possible to add a function to return a table of Comment objects sorted by time posted that would be insanely useful.
**ADD
I have found that some comments are location inside the actions
JSON object, and maybe the function could go through them and get type == "commentCard"
then sort by date
if it's not already sorted. Hope this helps!
**ADD
While I was working, I got this working. If you like, you can add it into the API. I believe it's already sorted by latest to oldest.
function NewCard:GetActions(filter)
local JSON
pcall(function()
JSON = HTTP:GetAsync("https://api.trello.com/1/cards/"..self:GetId().."/actions"..(filter and "?filter="..filter.."&"..auth:sub(2, #auth) or auth))
end)
return (HTTP:JSONDecode(JSON))
end
function NewCard:GetComments()
return self:GetActions("commentCard");
end
Thanks for this API again!
Currently, the code is in spaghetti form, with clear inefficiencies regarding the use of HttpService
and a dangerously soft line between fetching data from Trello and sending data to Trello.
Also, there are inconsistencies in argument checking that we need to fix.
In the end, the refactoring that would be required would be too much for a remake to be a valid option
Git-like approach to the problem that sits in three basic operations:
A caching system in order to support larger-scale games;
Gracious error handling for errors that might be out of user control (404's, 429's, 500's);
Proper error messages that are easy to understand (I recommend to see this article).
Until a version is stable, we will name dev releases of v2 2.0.0-dev.X
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.