Client for the pixeldrain API. Used by pixeldrain itself for tranferring data between the web UI and API server. And for rendering JSON responses
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
723 B

package pixelapi
import (
"time"
)
// ListInfo information object from the pixeldrain API
type ListInfo struct {
Success bool `json:"success"`
ID string `json:"id"`
Title string `json:"title"`
DateCreated time.Time `json:"date_created"`
FileCount int `json:"file_count"`
Files []ListFile `json:"files"`
}
// ListFile information object from the pixeldrain API
type ListFile struct {
DetailHREF string `json:"detail_href"`
Description string `json:"description"`
FileInfo `json:""`
}
// GetListID get a List from the pixeldrain API
func (p *PixelAPI) GetListID(id string) (resp ListInfo, err error) {
return resp, p.jsonRequest("GET", "list/"+id, &resp)
}