Sha256: 7e596b152a8c4da2c53009837ae8fda3945ed35e11ebe16f2af1ec5541bf98f3

Contents?: true

Size: 830 Bytes

Versions: 5

Compression:

Stored size: 830 Bytes

Contents

class CityGrid
  class API
    class Advertising
      class Performance < Advertising
        class << self
          def summary type, options = {}
            token = extract_auth_token options
            request_and_handle :post,
              "#{endpoint}/#{type}",
              :body    => options.to_json,
              :headers => merge_headers("authToken" => token)
          end
        end
        
        define_action :daily, :post, "campaign/daily", :auth_token => true, :format => false
        define_action :actions, :post, "campaign/actions", :auth_token => true, :format => false
        define_action :places_daily, :post, "places/daily", :auth_token => true, :format => false
        define_action :places_actions, :post, "places/actions", :auth_token => true, :format => false
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
citygrid_api-0.0.28 lib/citygrid/api/advertising/performance.rb
citygrid_api-0.0.27 lib/citygrid/api/advertising/performance.rb
citygrid_api-0.0.26 lib/citygrid/api/advertising/performance.rb
citygrid_api-0.0.25 lib/citygrid/api/advertising/performance.rb
citygrid_api-0.0.24 lib/citygrid/api/advertising/performance.rb