Module: Yammer::Api::User
- Included in:
- Client
- Defined in:
- lib/yammer/api/user.rb
Instance Method Summary collapse
- #all_users(opts = {}) ⇒ Yammer::ApiResponse
- #create_user(opts = {}) ⇒ Yammer::ApiResponse
- #current_user ⇒ Yammer::ApiResponse
- #delete_user(id) ⇒ Yammer::ApiResponse
- #get_user(id) ⇒ Yammer::ApiResponse
- #get_user_by_email(email) ⇒ Yammer::ApiResponse
- #update_user(id, opts = {}) ⇒ Yammer::ApiResponse
- #users_followed_by(id, opts = {}) ⇒ Yammer::ApiResponse
- #users_following(id, opts = {}) ⇒ Yammer::ApiResponse
- #users_in_group(id, opts = {}) ⇒ Yammer::ApiResponse
Instance Method Details
#all_users(opts = {}) ⇒ Yammer::ApiResponse
141 142 143 |
# File 'lib/yammer/api/user.rb', line 141 def all_users(opts={}) get("/api/v1/users", opts) end |
#create_user(opts = {}) ⇒ Yammer::ApiResponse
48 49 50 |
# File 'lib/yammer/api/user.rb', line 48 def create_user(opts={}) post("/api/v1/users", opts) end |
#current_user ⇒ Yammer::ApiResponse
128 129 130 |
# File 'lib/yammer/api/user.rb', line 128 def current_user get("/api/v1/users/current") end |
#delete_user(id) ⇒ Yammer::ApiResponse
93 94 95 |
# File 'lib/yammer/api/user.rb', line 93 def delete_user(id) delete("/api/v1/users/#{id}") end |
#get_user(id) ⇒ Yammer::ApiResponse
105 106 107 |
# File 'lib/yammer/api/user.rb', line 105 def get_user(id) get("/api/v1/users/#{id}") end |
#get_user_by_email(email) ⇒ Yammer::ApiResponse
117 118 119 |
# File 'lib/yammer/api/user.rb', line 117 def get_user_by_email(email) get("/api/v1/users/by_email", :email => email) end |
#update_user(id, opts = {}) ⇒ Yammer::ApiResponse
81 82 83 |
# File 'lib/yammer/api/user.rb', line 81 def update_user(id, opts={}) put("/api/v1/users/#{id}", opts) end |
#users_followed_by(id, opts = {}) ⇒ Yammer::ApiResponse
167 168 169 |
# File 'lib/yammer/api/user.rb', line 167 def users_followed_by(id, opts={}) get("/api/v1/users/followed_by/#{id}", opts) end |
#users_following(id, opts = {}) ⇒ Yammer::ApiResponse
154 155 156 |
# File 'lib/yammer/api/user.rb', line 154 def users_following(id, opts={}) get("/api/v1/users/following/#{id}", opts) end |
#users_in_group(id, opts = {}) ⇒ Yammer::ApiResponse
180 181 182 |
# File 'lib/yammer/api/user.rb', line 180 def users_in_group(id, opts={}) get("/api/v1/users/in_group/#{id}", opts) end |