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
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
share_album(album_id,services) click to toggle source

POST

# File lib/EyeEmConnector/models/albums.rb, line 55
def share_album(album_id,services) #available services: twitter,facebook,tumblr as comma separated string
  response = post("albums/#{album_id}/share",options.merge(:services => services),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