module EyeEmConnector::Client::Albums
Public Instance Methods
album(id,options={})
click to toggle source
# File lib/EyeEmConnector/models/albums.rb, line 17 def album(id,options={}) response = get('albums/'+id.to_s,options) response.body end
album_contributor(album_id,contributer_id,options={})
click to toggle source
# File lib/EyeEmConnector/models/albums.rb, line 41 def album_contributor(album_id,contributer_id,options={}) response = get("albums/#{album_id}/contributors/#{contributer_id}",options,true) end
album_contributors(id,options={})
click to toggle source
# File lib/EyeEmConnector/models/albums.rb, line 32 def album_contributors(id,options={}) response = get('albums/'+id.to_s+'/contributors',options) response.body end
album_liker(album_id,liker_id,options={})
click to toggle source
# File lib/EyeEmConnector/models/albums.rb, line 37 def album_liker(album_id,liker_id,options={}) response = get("albums/#{album_id}/likers/#{liker_id}",options,true) end
album_likers(id,options={})
click to toggle source
# File lib/EyeEmConnector/models/albums.rb, line 27 def album_likers(id,options={}) response = get('albums/'+id.to_s+'/likers',options) response.body end
album_photos(id,options={})
click to toggle source
# File lib/EyeEmConnector/models/albums.rb, line 22 def album_photos(id,options={}) response = get('albums/'+id.to_s+'/photos',options) response.body end
albums(options={})
click to toggle source
# File lib/EyeEmConnector/models/albums.rb, line 12 def albums(options={}) response = get('albums',options) response.body end
albums_recommended(options={})
click to toggle source
for the options of different albums endpoints, see github.com/eyeem/Public-API/wiki/Albums
# File lib/EyeEmConnector/models/albums.rb, line 7 def albums_recommended(options={}) response = get('albums/recommended',options) response.body end
like_album(album_id,liker_id)
click to toggle source
for adding photo to an album see add_photo_to_album in photos.rb
# File lib/EyeEmConnector/models/albums.rb, line 49 def like_album(album_id,liker_id) response = put("albums/#{album_id}/likers/#{liker_id}",true) end
unlike_album(album_id,liker_id)
click to toggle source
to remove photo from an albums see remove_photo_to_album in photos.rb
# File lib/EyeEmConnector/models/albums.rb, line 63 def unlike_album(album_id,liker_id) response = delete("albums/#{album_id}/likers/#{liker_id}",true) end