# NOT RUN {
> #*** Note: I cannot provide working examples without
> #*** compromising security. Instead, I will try to
> #*** offer up sample code with the matching results
>
> #*** Create the connection object
> rcon <- redcapConnection(url=[YOUR_REDCAP_URL], token=[API_TOKEN])
>
> exportEvents(rcon)
event_name arm_num day_offset offset_min offset_max unique_event_name
1 Event 1 1 0 0 0 event_1_arm_1
2 Follow Up 1 1 1 0 0 follow_up_1_arm_1
3 Follow Up 2 1 2 0 0 follow_up_2_arm_1
# }
Run the code above in your browser using DataLab