I am trying to use this Lu.ma api code to create an event in Zapier using the Run Python in Code by Zapier.
Zapier is returning a success screen too me however my event itself isn’t appearing. Any help or insights into how I should modify the code? Sorry not a Python coder.
import requests
url = "https://api.lu.ma/public/v1/event/create"
return {'name': input_data a'name']}
return {'start_at': input_data a'start_at']}
return {'timezone': input_data a'timezone']}
return {'end_at': input_data a'end_at']}
return {'require_rsvp_approval': input_data a'require_rsvp_approval']}
return {'meeting_url': input_data a'meeting_url']}
payload = {
"name": 'name',
"start_at": 'start_at',
"timezone": 'timezone',
"end_at": 'end_at',
"require_rsvp_approval": 'require_rsvp_approval',
"meeting_url": 'meeting_url'
}
headers = {
"accept": "application/json",
"content-type": "application/json",
"x-luma-api-key": "REMOVED FOR SHARING"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)