Events/Id
Get event
Retrieve a single event by its unique ID.
Authorization
x-kommunity-api-key
<token>In: header
Path Parameters
id
RequiredstringUnique identifier for the event
Response Body
Successfully retrieved event
TypeScript Definitions
Use the response body type in TypeScript.
success
booleandata
objectMissing or invalid event ID
TypeScript Definitions
Use the response body type in TypeScript.
success
RequiredbooleanValue in:
false
error
Requiredstringdetails
stringUnauthorized - Invalid API key or permission
TypeScript Definitions
Use the response body type in TypeScript.
success
RequiredbooleanValue in:
false
error
Requiredstringdetails
stringEvent not found or no permission
TypeScript Definitions
Use the response body type in TypeScript.
success
RequiredbooleanValue in:
false
error
Requiredstringdetails
stringServer error
TypeScript Definitions
Use the response body type in TypeScript.
success
RequiredbooleanValue in:
false
error
Requiredstringdetails
stringcurl -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",
"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"
}