Using the Generate Event API Resource