Documentation ¶
Index ¶
- type API
- type FlickrAuthAPI
- func (api FlickrAuthAPI) Call(params url.Values) (*http.Response, error)
- func (api *FlickrAuthAPI) ExecuteMethod(method string, params url.Values) ([]byte, error)
- func (api *FlickrAuthAPI) ExecuteMethodPaginated(method string, params url.Values, cb SPRCallbackFunc) error
- func (api *FlickrAuthAPI) Sign(args url.Values) string
- type SPRCallbackFunc
- type StandardPhotoResponse
- type StandardPhotoResponsePhoto
- type StandardPhotoResponsePhotos
- type WIPStandardPhoto
- type WIPStandardPhotoResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type FlickrAuthAPI ¶
type FlickrAuthAPI struct { API Key string Secret string // contains filtered or unexported fields }
func (*FlickrAuthAPI) ExecuteMethod ¶
func (*FlickrAuthAPI) ExecuteMethodPaginated ¶
func (api *FlickrAuthAPI) ExecuteMethodPaginated(method string, params url.Values, cb SPRCallbackFunc) error
type SPRCallbackFunc ¶
type SPRCallbackFunc func(StandardPhotoResponse) error
type StandardPhotoResponse ¶
type StandardPhotoResponse struct { Photos StandardPhotoResponsePhotos `json:"photos"` Stat string `json:"stat"` }
type StandardPhotoResponsePhoto ¶
type StandardPhotoResponsePhoto struct { ID string `json:"id"` // string... what?? Owner string `json:"owner"` Secret string `json:"secret"` Server string `json:"server"` // string... what?? Farm int `json:"farm"` Title string `json:title"` IsPublic int `json:ispublic"` // Y U NO bool IsFriend int `json:isfriend"` // see above IsFamily int `json:isfamily"` // see above }
type StandardPhotoResponsePhotos ¶
type StandardPhotoResponsePhotos struct { Page int `json:"page"` Pages int `json:"pages"` PerPage int `json:"perpage"` Total string `json:"total"` // see the way this is a string... what??? Photos []StandardPhotoResponsePhoto `json:"photo"` // see the way its 'photo' and not 'photos' ... yeah, that }
type WIPStandardPhoto ¶
type WIPStandardPhotoResponse ¶
type WIPStandardPhotoResponse interface { Page() int Pages() int PerPage() int Total() int Photos() []WIPStandardPhoto }
Click to show internal directories.
Click to hide internal directories.