Sha256: d51f78bf4abe8cdce816ebdb89393637d092678325f235ecce0525bc6b145d8a

Contents?: true

Size: 616 Bytes

Versions: 1

Compression:

Stored size: 616 Bytes

Contents

module Voog
  class API
    module Tickets

      # List form tickets
      def tickets(form_id, params = {})
        get "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.7 lib/voog_api/api/tickets.rb