Documentation
¶
Index ¶
- Variables
- func GroupsPages(d *Groups) *client.Pagination
- func NewSharedGroupFromRequest(req *http.Request) client.RequestOptions
- func NewSharedGroupRequest(g *types.Group) client.RequestOptions
- func NewTribeSharedGroupFromRequest(req *http.Request) client.RequestOptions
- func NewTribeSharedGroupRequest(g *types.Group) client.RequestOptions
- func NewUserSharedGroupFromRequest(req *http.Request) client.RequestOptions
- func NewUserSharedGroupRequest(g *types.Group) client.RequestOptions
- func NewUserSharedLibraryFromRequest(req *http.Request) client.RequestOptions
- func NewUserSharedLibraryRequest(u *types.User) client.RequestOptions
- func ObjectsPages(d *Objects) *client.Pagination
- func TribesPages(d *Tribes) *client.Pagination
- func UserSharedLibraryPages(p *UserSharedLibrary) *client.Pagination
- func UsersPages(d *Users) *client.Pagination
- func Write(data interface{}, indent string, out io.Writer) error
- type API
- type Archive
- type Collection
- type File
- type Files
- type Group
- type Groups
- type Image
- type ImageFile
- type Images
- type Object
- type ObjectItems
- type ObjectPrice
- type Objects
- type Tribe
- type TribeGroup
- type TribeGroups
- type Tribes
- type User
- type UserSharedLibrary
- type Users
Constants ¶
This section is empty.
Variables ¶
var PledgesLibraryRequest = client.RequestOptions{ Accept: "application/json", Referer: "/library/?v=campaigns", Path: "/data-library/campaigns", Method: "GET", Result: Objects{}, }
Pledges
var PurchasesLibraryRequest = client.RequestOptions{ Accept: "application/json", Referer: "/library/?v=purchases", Path: "/data-library/purchases", Method: "GET", Result: Objects{}, }
Purchases
Accept: "application/json", Referer: "/library/?v=shared", Path: "/data-library/shared", Method: "GET", Result: Users{}, }
Shared
var TribesLibraryRequest = client.RequestOptions{ Accept: "application/json", Referer: "/library/?v=my-tribes", Path: "/data-library/tribes", Method: "GET", Result: Tribes{}, }
Tribes
Functions ¶
func GroupsPages ¶
func GroupsPages(d *Groups) *client.Pagination
works out if a Groups response needs more pages
func NewSharedGroupFromRequest ¶
func NewSharedGroupFromRequest(req *http.Request) client.RequestOptions
func NewSharedGroupRequest ¶
func NewSharedGroupRequest(g *types.Group) client.RequestOptions
/data-library/group/{id}
func NewTribeSharedGroupFromRequest ¶
func NewTribeSharedGroupFromRequest(req *http.Request) client.RequestOptions
func NewTribeSharedGroupRequest ¶
func NewTribeSharedGroupRequest(g *types.Group) client.RequestOptions
func NewUserSharedGroupFromRequest ¶
func NewUserSharedGroupFromRequest(req *http.Request) client.RequestOptions
func NewUserSharedGroupRequest ¶
func NewUserSharedGroupRequest(g *types.Group) client.RequestOptions
func NewUserSharedLibraryFromRequest ¶
func NewUserSharedLibraryFromRequest(req *http.Request) client.RequestOptions
func NewUserSharedLibraryRequest ¶
func NewUserSharedLibraryRequest(u *types.User) client.RequestOptions
/data-library/shared/{username}
func ObjectsPages ¶
func ObjectsPages(d *Objects) *client.Pagination
works out if a Objects response needs more pages
func TribesPages ¶
func TribesPages(d *Tribes) *client.Pagination
works out if a Tribes response needs more pages
func UserSharedLibraryPages ¶
func UserSharedLibraryPages(p *UserSharedLibrary) *client.Pagination
func UsersPages ¶
func UsersPages(d *Users) *client.Pagination
works out if a Users response needs more pages
Types ¶
type Collection ¶
type Collection struct{}
type File ¶
type File struct {
Id int `json:"id"`
Filename string `json:"filename"`
Description string `json:"description"`
Status int `json:"status"`
StatusName string `json:"status_name"`
Size int `json:"size"`
PatchURL string `json:"patch_url"`
ThumbnailURL string `json:"thumbnail_url"`
DownloadURL string `json:"download_url"`
CreatedAt time.Time `json:"created_at"`
ViewerURL string `json:"viewer_url"`
Render360 []string `json:"render360_urls"`
}
type Group ¶
type Group struct {
Id types.Id `json:"id"`
Name string `json:"name"`
API map[string]API `json:"apis,omitempty"`
TotalObjects int `json:"total_count_objects,omitempty"`
Children []Group `json:"childrens,omitempty"`
Objects
}
type Image ¶
type Image struct {
Id int `json:"id"`
UploadId string `json:"upload_id"`
Primary bool `json:"is_primary,omitempty"`
PrintImageSelected bool `json:"is_print_image_selected,omitempty"`
Original ImageFile `json:"original,omitempty"`
Tiny ImageFile `json:"tiny,omitempty"`
Thumbnail ImageFile `json:"thumbnail,omitempty"`
Standard ImageFile `json:"standard,omitempty"`
Large ImageFile `json:"large,omitempty"`
}
type Object ¶
type Object struct {
Id int `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
Type string `json:"type,omitempty"`
ObjType string `json:"document_name_s,omitempty"`
Private bool `json:"is_private,omitempty"`
Visits int `json:"visits,omitempty"`
URL string `json:"url,omitempty"`
ShowURL string `json:"show_url,omitempty"`
AbsoluteURL string `json:"absolute_url,omitempty"`
Image string `json:"obj_img,omitempty"`
Images Images `json:"images,omitempty"`
Wide bool `json:"wide,omitempty"`
Purchased bool `json:"is_purchased,omitempty"`
Price ObjectPrice `json:"price,omitempty"`
FileMode int `json:"file_mode,omitempty"`
Permissions int `json:"permissions,omitempty"`
DownloadURL string `json:"download_url,omitempty"`
ArchiveDownloadURL string `json:"archive_download_url,omitempty"`
Archives []Archive `json:"archives,omitempty"`
Files Files `json:"files,omitempty"`
Pledges Groups `json:"pledges,omitempty"`
User string `json:"username,omitempty"`
UserName string `json:"user_name,omitempty"`
UserURL string `json:"user_url,omitempty"`
UserImage string `json:"user_img,omitempty"`
UserCollections []Collection `json:"user_collections,omitempty"`
UserCredits *json.Number `json:"user_credits,omitempty"`
API map[string]API `json:"apis,omitempty"`
}
type ObjectItems ¶
type ObjectItems []Object
func (*ObjectItems) UnmarshalJSON ¶
func (w *ObjectItems) UnmarshalJSON(data []byte) error
type ObjectPrice ¶
type Objects ¶
type Objects struct {
Count json.Number `json:"total_count,omitempty"`
Items ObjectItems `json:"items,omitempty"`
}
func PledgesLibraryResult ¶
PledgesLibraryResult() pulls a *Objects out of a resty.Response
func PurchasesLibraryResult ¶
PurchasesLibraryResult() pulls a *Objects out of a resty.Response
func TribeSharedGroupResult ¶
TribeSharedGroupResult() pulls a *Objects out of a resty.Response
func UserSharedGroupResult ¶
UserSharedGroupResult() pulls a *Objects out of a resty.Response
type Tribe ¶
type Tribe struct {
Id int `json:"id"`
Name string `json:"name"`
UserAvatar string `json:"user_avatar"`
URL string `json:"url"`
Groups TribeGroups `json:"groups,omitempty"`
}
type TribeGroup ¶
type TribeGroups ¶
type TribeGroups struct {
Count int `json:"total_count,omitempty"`
Items []TribeGroup `json:"items,omitempty"`
}
type Tribes ¶
type Tribes struct {
Count int `json:"total_count,omitempty"`
Items []Tribe `json:"items,omitempty"`
}
func TribesLibraryResult ¶
TribesLibraryResult() pulls a *Tribes out of a resty.Response
type User ¶
type UserSharedLibrary ¶
type UserSharedLibrary struct {
}
func UserSharedLibraryResult ¶
func UserSharedLibraryResult(resp *resty.Response) *UserSharedLibrary
UserSharedLibraryResult() pulls a *UserSharedLibrary out of a resty.Response
type Users ¶
func SharedLibraryResult ¶
SharedLibraryResult() pulls a *Users out of a resty.Response