Sha256: 385274e1d2d9752ab8ce5e37d5385198afbf7c36a3db995821fe903dff066d40

Contents?: true

Size: 621 Bytes

Versions: 1

Compression:

Stored size: 621 Bytes

Contents

module Voog
  class API
    module Tickets

      # List form tickets
      def tickets(form_id, params = {})
        paginate "forms/#{form_id}/tickets", {query: params}
      end

      # Get a single ticket for form
      def ticket(form_id, id, params = {})
        get "forms/#{form_id}/tickets/#{id}", {query: params}
      end

      # Delete a form ticket
      def delete_ticket(form_id, id)
        delete "forms/#{form_id}/tickets/#{id}"
      end

      # Delete all spam ticket for form
      def delete_spam_tickets(form_id)
        delete "forms/#{form_id}/tickets/delete_spam"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
voog_api-0.0.10 lib/voog_api/api/tickets.rb