diff options
author | Rhenium <rhenium@rhe.jp> | 2014-01-16 06:55:35 +0900 |
---|---|---|
committer | Rhenium <rhenium@rhe.jp> | 2014-01-16 06:55:35 +0900 |
commit | 15277311e4a775930dd8817bdd24fc480aee5127 (patch) | |
tree | 5550775fa7ff619b1f89789117115025fa06eb55 /app/controllers/users_controller.rb | |
parent | b4ad8c8a68e1863b24479c6040637062df510e09 (diff) | |
download | aclog-15277311e4a775930dd8817bdd24fc480aee5127.tar.gz |
update apidocs of tweets and users
Diffstat (limited to 'app/controllers/users_controller.rb')
-rw-r--r-- | app/controllers/users_controller.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 09894df..28bec9c 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -1,7 +1,7 @@ class UsersController < ApplicationController param_group :user do - optional :id, :integer, "The numerical ID of the user for whom to return results for." - optional :screen_name, :string, "The username of the user for whom to return results for." + optional :id, 15926668, "The numerical ID of the user for whom to return results for." + optional :screen_name, "toshi_a", "The username of the user for whom to return results for." end get "users/stats" @@ -52,7 +52,7 @@ class UsersController < ApplicationController get "users/screen_name" nodoc [:id, :ids, :user_id, :user_ids].each do |n| - optional n, /^\d+(,\d+)*,?$/, "A comma-separated list of User IDs." + optional n, "230367516,280414022", "A comma-separated list of User IDs." end def screen_name user_ids = (params[:id] || params[:ids] || params[:user_id] || params[:user_ids]).split(",").map { |i| i.to_i } |