people

package
v0.0.0-...-8c244fe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContentType

type ContentType int
const (
	NoContentTypeSpecified ContentType = iota
	PhotosOnly
	ScreenShotsOnly
	OtherOnly
	PhotosAndScreenshots
	ScreenShotsAndOther
	PhotosAndOther
	All
)

type GetPhotosOptionalArgs

type GetPhotosOptionalArgs struct {
	SafeSearch    SafetyLevel       // optional, set to NoneSpecified to ignore
	MinUploadDate string            // optional, set to "" to ignore. mysql datetime
	MaxUploadDate string            // optional, set to "" to ignore. mysql datetime
	MinTakenDate  string            // optional, set to "" to ignore. mysql datetime
	MaxTakenDate  string            // optional, set to "" to ignore. mysql datetime
	ContentType   ContentType       // optional, set to NoneSpecified to ignore
	PrivacyFilter PrivacyFilterType // optional, set to NoneSpecified to ignore
	Extras        string            // optional, set to "" to ignore. comma separated string.
	PerPage       int               // 0 to ignore
	Page          int               // 0 to ignore
}

type GetPhotosResponse

type GetPhotosResponse struct {
	flickr.BasicResponse
	Photos Photos `xml:"photos"`
}

func GetPhotos

func GetPhotos(client *flickr.FlickrClient,
	userId string, opts GetPhotosOptionalArgs) (*GetPhotosResponse, error)

type Photo

type Photo struct {
	DateTaken      string `xml:"datetaken,attr"`
	DateUpload     string `xml:"dateupload,attr"`
	Description    string `xml:"description"`
	Geo            string `xml:"geo,attr"`
	IconServer     string `xml:"iconserver,attr"`
	Id             string `xml:"id,attr"`
	IsFamily       bool   `xml:"isfamily,attr"`
	IsFriend       bool   `xml:"isfriend,attr"`
	IsPublic       bool   `xml:"ispublic,attr"`
	LastUpdate     string `xml:"lastupdate,attr"`
	License        string `xml:"license,attr"`
	MachineTags    string `xml:"machine_tags,attr"`
	Media          string `xml:"media,attr"`
	OriginalFormat string `xml:"originalformat,attr"`
	Owner          string `xml:"owner,attr"`
	OwnerName      string `xml:"ownername,attr"`
	PathAlias      string `xml:"pathalias,attr"`
	Secret         string `xml:"secret,attr"`
	Server         string `xml:"server,attr"`
	Tags           string `xml:"tags,attr"`
	Title          string `xml:"title,attr"`
	URLC           string `xml:"url_c,attr"`  // medium 800
	URLL           string `xml:"url_l,attr"`  // large
	URLM           string `xml:"url_m,attr"`  // medium 500
	URLN           string `xml:"url_n,attr"`  // small
	URLO           string `xml:"url_o,attr"`  // URL of original size image
	URLQ           string `xml:"url_q,attr"`  // large square
	URLS           string `xml:"url_s,attr"`  // square
	URLSQ          string `xml:"url_sq,attr"` // square
	URLT           string `xml:"url_t,attr"`  // thumbnail
	URLZ           string `xml:"url_z,attr"`  // medium 640
	Views          string `xml:"views,attr"`
}

type Photos

type Photos struct {
	Page    int     `xml:"page,attr"`
	Pages   int     `xml:"pages,attr"`
	PerPage int     `xml:"perpage,attr"`
	Total   int     `xml:"total,attr"`
	Photos  []Photo `xml:"photo"`
}

type PrivacyFilterType

type PrivacyFilterType int
const (
	NoPrivacyFilterSpecified PrivacyFilterType = iota
	Public
	Friends
	Family
	FriendsAndFamily
	Private
)

type SafetyLevel

type SafetyLevel int
const (
	NoSafetySpecified SafetyLevel = iota
	Safe
	Moderate
	Restricted
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL