module EyeEmConnector::Client::Users
Public Instance Methods
add_friends(id,friend_ids)
click to toggle source
# File lib/EyeEmConnector/models/users.rb, line 92 def add_friends(id,friend_ids) # friend_ids, is a comma separated list of user ids response = post("users/#{id}/friends",{:friend_id => friend_ids},true) end
remove_friend(id, friend_id)
click to toggle source
DELETE
# File lib/EyeEmConnector/models/users.rb, line 103 def remove_friend(id, friend_id) response = delete("users/#{id}/friends#{friend_id}",true) end
set_user_news_settings(id,options={})
click to toggle source
POST
# File lib/EyeEmConnector/models/users.rb, line 83 def set_user_news_settings(id,options={}) #access token required response = post("users/#{id.to_s}/newsSettings",options) response.body end
user(id,options={})
click to toggle source
# File lib/EyeEmConnector/models/users.rb, line 13 def user(id,options={}) response = get('users/'+id.to_s,options) response.body end
user_discover(id,options={})
click to toggle source
# File lib/EyeEmConnector/models/users.rb, line 43 def user_discover(id,options={}) #access token required response = get('users/'+id.to_s+'/discover',options) response.body end
user_feed(id,options={})
click to toggle source
# File lib/EyeEmConnector/models/users.rb, line 38 def user_feed(id,options={}) #access token required response = get('users/'+id.to_s+'/feed',options) response.body end
user_follower(user_id,follower_id,options={})
click to toggle source
# File lib/EyeEmConnector/models/users.rb, line 62 def user_follower(user_id,follower_id,options={}) response = get("users/#{user_id}/followers/#{follower_id}",options,true) end
user_followers(id,options={})
click to toggle source
# File lib/EyeEmConnector/models/users.rb, line 57 def user_followers(id,options={}) response = get('users/'+id.to_s+'/followers',options) response.body end
user_friend(user_id,friend_id,options={})
click to toggle source
# File lib/EyeEmConnector/models/users.rb, line 53 def user_friend(user_id,friend_id,options={}) response = get("users/#{user_id}/friends/#{friend_id}",options,true) end
user_friends(id,options={})
click to toggle source
# File lib/EyeEmConnector/models/users.rb, line 48 def user_friends(id,options={}) response = get('users/'+id.to_s+'/friends',options) response.body end
user_friends_photos(id,options={})
click to toggle source
# File lib/EyeEmConnector/models/users.rb, line 28 def user_friends_photos(id,options={}) response = get('users/'+id.to_s+'/friendsPhotos',options) response.body end
user_liked_albums(id,options={})
click to toggle source
# File lib/EyeEmConnector/models/users.rb, line 33 def user_liked_albums(id,options={}) response = get('users/'+id.to_s+'/likedAlbums',options) response.body end
user_liked_photos(id,options={})
click to toggle source
# File lib/EyeEmConnector/models/users.rb, line 23 def user_liked_photos(id,options={}) response = get('users/'+id.to_s+'/likedPhotos',options) response.body end
user_news_settings(id,options={})
click to toggle source
# File lib/EyeEmConnector/models/users.rb, line 76 def user_news_settings(id,options={}) #access token required response = get("users/#{id.to_s}/newsSettings",options) response.body end
user_photos(id,options={})
click to toggle source
# File lib/EyeEmConnector/models/users.rb, line 18 def user_photos(id,options={}) response = get('users/'+id.to_s+'/photos',options) response.body end
user_topics(id,options={})
click to toggle source
# File lib/EyeEmConnector/models/users.rb, line 66 def user_topics(id,options={}) #access token required response = get("users/#{id.to_s}/topics",options) response.body end
users(options={})
click to toggle source
for the options of different users endpoints, see github.com/eyeem/Public-API/wiki/users
# File lib/EyeEmConnector/models/users.rb, line 8 def users(options={}) response = get('users',options) response.body end