(album-url album-id)
Inputs: [album-id :- s/Str] Returns: s/Str
Returns the URL for the supplied album ID.
Inputs: [album-id :- s/Str] Returns: s/Str Returns the URL for the supplied album ID.
(create-album! m)
Inputs: [m :- {:name s/Str, :location s/Str, :page-id s/Str, :access-token s/Str}] Returns: {:id s/Str}
Creates a new facebook album and returns the ID of that album. In dev mode, just returns a fake UUID.
Reference: https://developers.facebook.com/docs/graph-api/reference/page/albums
Inputs: [m :- {:name s/Str, :location s/Str, :page-id s/Str, :access-token s/Str}] Returns: {:id s/Str} Creates a new facebook album and returns the ID of that album. In dev mode, just returns a fake UUID. Reference: https://developers.facebook.com/docs/graph-api/reference/page/albums
(get-photo photo-id)
Inputs: [photo-id :- ps/FacebookID]
retrieve photo info from Facebook. See https://developers.facebook.com/docs/graph-api/reference/photo/ for return schema.
Inputs: [photo-id :- ps/FacebookID] retrieve photo info from Facebook. See https://developers.facebook.com/docs/graph-api/reference/photo/ for return schema.
(link-photos! album-id
cdn-prefix
photo-id->caption
inputs
fb-page-id
access-token)
Inputs: [album-id :- ps/AlbumID cdn-prefix :- s/Str photo-id->caption :- {ps/ID s/Str} inputs :- [ps/Photo] fb-page-id :- s/Str access-token :- s/Str] Returns: [LinkedPhoto]
Uploads the supplied photos to Facebook and adds the facebook id and album id into the photo input. These photos can then be added to the database.
Inputs: [album-id :- ps/AlbumID cdn-prefix :- s/Str photo-id->caption :- {ps/ID s/Str} inputs :- [ps/Photo] fb-page-id :- s/Str access-token :- s/Str] Returns: [LinkedPhoto] Uploads the supplied photos to Facebook and adds the facebook id and album id into the photo input. These photos can then be added to the database.
A Photo that has been uploaded to FB.
A Photo that has been uploaded to FB.
(make-required schema k)
Inputs: [schema :- {s/Any s/Any} k :- (s/named s/Any "Key to toggle")] Returns: {s/Any s/Any}
Takes in a Schema, and a keyword to make required.
Inputs: [schema :- {s/Any s/Any} k :- (s/named s/Any "Key to toggle")] Returns: {s/Any s/Any} Takes in a Schema, and a keyword to make required.
(tag-photos-prod tags)
Inputs: [tags :- [{:photo-fb-id ps/FacebookID, :user-fb-ids [(s/maybe s/Str)]}]] Returns: [{:success s/Bool}]
Tags all photos on Facebook. Returns a sequence of tag responses.
Inputs: [tags :- [{:photo-fb-id ps/FacebookID, :user-fb-ids [(s/maybe s/Str)]}]] Returns: [{:success s/Bool}] Tags all photos on Facebook. Returns a sequence of tag responses.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close