All URIs are relative to https://api.unifapi.com
| Method | HTTP request | Description |
|---|---|---|
| events_search_post | POST /events/search | Search Events |
events_search_post(opts)
Search Events
Run one live Events search and receive individual events for a query, including title, dates, venue location, ticket links, and a description.
require 'time'
require 'unifapi'
# setup authorization
Unifapi.configure do |config|
# Configure Bearer authorization: bearerAuth
config.access_token = 'YOUR_BEARER_TOKEN'
end
api_instance = Unifapi::EventsApi.new
opts = {
events_search_request: Unifapi::EventsSearchRequest.new({query: 'query_example'}) # EventsSearchRequest |
}
begin
# Search Events
result = api_instance.events_search_post(opts)
p result
rescue Unifapi::ApiError => e
puts "Error when calling EventsApi->events_search_post: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> events_search_post_with_http_info(opts)
begin
# Search Events
data, status_code, headers = api_instance.events_search_post_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <EventsSearchPost200Response>
rescue Unifapi::ApiError => e
puts "Error when calling EventsApi->events_search_post_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| events_search_request | EventsSearchRequest | [optional] |
- Content-Type: application/json
- Accept: application/json