lua.wetgenes.tasks_gist.list
local tasks=require("wetgenes.tasks").create()
local gist=require("wetgenes.tasks_gist")
local opts={
tasks=tasks, -- required
}
local list=gist.list(opts)
List some gists from github using options found in opts, valid options are...
baseurl can be used to overide the default of "https://api.github.com"
tasks is always required as we use it for http access.
token should be set to a github access token and is required for writting data or accessing non public information.
username is the name of a github user we wish to list gists for
filter can be "public" to request only public gists or "starred" to request only starred gists.
since is an ISO_8601 timestamp in a string and should be set if we are only interested in gists since this time.
per_page is the number of results we want, the api limits this to 100 but defaults to 30. Probably a good idea to set this to 100 unless you want to deal with paging code and even then you can only get the first 3000 results.
page is the page of results we are requesting, It defaults to 1 so can be omitted unless you are going to request multiple pages.