Events/Id
Get event
Retrieve a single event by its unique ID.
Authorization
x-kommunity-api-key<token>In: header
Path Parameters
idRequiredstringUnique identifier for the event
Response Body
Successfully retrieved event
TypeScript Definitions
Use the response body type in TypeScript.
successbooleandataobjectMissing or invalid event ID
TypeScript Definitions
Use the response body type in TypeScript.
successRequiredbooleanValue in:
falseerrorRequiredstringdetailsstringUnauthorized - Invalid API key or permission
TypeScript Definitions
Use the response body type in TypeScript.
successRequiredbooleanValue in:
falseerrorRequiredstringdetailsstringEvent not found or no permission
TypeScript Definitions
Use the response body type in TypeScript.
successRequiredbooleanValue in:
falseerrorRequiredstringdetailsstringServer error
TypeScript Definitions
Use the response body type in TypeScript.
successRequiredbooleanValue in:
falseerrorRequiredstringdetailsstringcurl -X GET "/api/v1/events/string" \
-H "x-kommunity-api-key: <token>"fetch("/api/v1/events/string", {
headers: {
"x-kommunity-api-key": "<token>"
}
})package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "/api/v1/events/string"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-kommunity-api-key", "<token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}import requests
url = "/api/v1/events/string"
response = requests.request("GET", url, headers = {
"x-kommunity-api-key": "<token>"
})
print(response.text){
"success": true,
"data": {
"name": "string",
"description": "string",
"category": "string",
"subcategory": "string",
"hostName": "string",
"isHostedOnline": false,
"attendeeLimit": 1,
"country": "string",
"street": "string",
"city": "string",
"state": "string",
"zipCode": "string",
"eventImg": "string",
"startTime": "2019-08-24T14:15:22Z",
"endTime": "2019-08-24T14:15:22Z",
"timezone": "string",
"email": "[email protected]",
"phone": "string",
"tickets": [
{
"id": "string",
"name": "string",
"price": 0
}
],
"joinUrl": "string",
"questions": [
{
"id": "string",
"question": "string",
"required": true
}
]
}
}{
"success": false,
"error": "string",
"details": "string"
}{
"success": false,
"error": "string",
"details": "string"
}{
"success": false,
"error": "string",
"details": "string"
}{
"success": false,
"error": "string",
"details": "string"
}