Sha256: 55a9280b883bcf1a11c2e177e4aac25221aaaa7fdb1c60c378b5760b7b74ada8

Contents?: true

Size: 696 Bytes

Versions: 1

Compression:

Stored size: 696 Bytes

Contents

class CityGrid
  class API
    class AdCenter
      class CallDetail < AdCenter
        class << self
          def get by, options = {}
            token = extract_auth_token options
            request_and_handle :post,
              "#{endpoint}/#{by}",
              :body    => options.to_json,
              :headers => merge_headers("authToken" => token)
          end
          
          def note options = {}
            token = extract_auth_token options
            request_and_handle :post,
              "#{endpoint}/note",
              :body    => options.to_json,
              :headers => merge_headers("authToken" => token)
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
citygrid_api-0.0.5.1 lib/citygrid/api/ad_center/call_detail.rb