# List Active Events GET https://photos.conventionphotography.com/api/proxy-events ## List Active Events Retrieves a list of all active convention events available for ordering. ### Endpoint `GET https://convention.photos/api/proxy-events` ### Description This endpoint provides a cached list of active events from the PHP backend, used to populate event selection dropdowns and landing page cards on convention.photos. ### Response Format Returns JSON array of event objects: ```json [ { "eventSlug": "ASDAR26", "eventName": "ASDAR 26th Annual Convention", "active": true } ] ``` ### Use Cases - Display event cards on landing page - Populate event selection in order forms - Filter available events for ordering ### Authentication No authentication required for public event listings. Reference: https://docs.convention.photos/api-reference/cps-api/convention-photos/list-active-events ## OpenAPI Specification ```yaml openapi: 3.1.0 info: title: Convention Photography System (CPS) version: 1.0.0 paths: /api/proxy-events: get: operationId: list-active-events summary: List Active Events description: >- ## List Active Events Retrieves a list of all active convention events available for ordering. ### Endpoint `GET https://convention.photos/api/proxy-events` ### Description This endpoint provides a cached list of active events from the PHP backend, used to populate event selection dropdowns and landing page cards on convention.photos. ### Response Format Returns JSON array of event objects: ```json [ { "eventSlug": "ASDAR26", "eventName": "ASDAR 26th Annual Convention", "active": true } ] ``` ### Use Cases - Display event cards on landing page - Populate event selection in order forms - Filter available events for ordering ### Authentication No authentication required for public event listings. tags: - subpackage_conventionPhotos responses: '200': description: List of active events content: application/json: schema: $ref: >- #/components/schemas/convention.photos_listActiveEvents_Response_200 servers: - url: https://photos.conventionphotography.com - url: https://convention.photos components: schemas: convention.photos_listActiveEvents_Response_200: type: object properties: {} description: Empty response body title: convention.photos_listActiveEvents_Response_200 ``` ## SDK Code Examples ```python import requests url = "https://photos.conventionphotography.com/api/proxy-events" response = requests.get(url) print(response.json()) ``` ```javascript const url = 'https://photos.conventionphotography.com/api/proxy-events'; const options = {method: 'GET'}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://photos.conventionphotography.com/api/proxy-events" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby require 'uri' require 'net/http' url = URI("https://photos.conventionphotography.com/api/proxy-events") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```java import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://photos.conventionphotography.com/api/proxy-events") .asString(); ``` ```php request('GET', 'https://photos.conventionphotography.com/api/proxy-events'); echo $response->getBody(); ``` ```csharp using RestSharp; var client = new RestClient("https://photos.conventionphotography.com/api/proxy-events"); var request = new RestRequest(Method.GET); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let request = NSMutableURLRequest(url: NSURL(string: "https://photos.conventionphotography.com/api/proxy-events")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```