Class: ApiController

Inherits:
ApplicationController show all
Defined in:
app/controllers/api_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#not_found

Instance Method Details

#configObject



27
28
# File 'app/controllers/api_controller.rb', line 27

def config
end

#createObject



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

#generateObject



21
22
# File 'app/controllers/api_controller.rb', line 21

def generate
end

#listObject



24
25
# File 'app/controllers/api_controller.rb', line 24

def list
end