Class: ApiController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- ApiController
- Defined in:
- app/controllers/api_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
Instance Method Details
#config ⇒ Object
27 28 |
# File 'app/controllers/api_controller.rb', line 27 def config end |
#create ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'app/controllers/api_controller.rb', line 2 def create # Required Parameters # api_key=string # password=string # Optional 1 time parameters # expire_days=number # expire_views=number unless params.has_key?(:api_key) respond_to do |format| format.text { render :text => "Please provide your API key available at https://pwpush.com/api" } end return end end |
#generate ⇒ Object
21 22 |
# File 'app/controllers/api_controller.rb', line 21 def generate end |
#list ⇒ Object
24 25 |
# File 'app/controllers/api_controller.rb', line 24 def list end |