I am using JQL which is giving me the syntax error...
# questions
n
I am using JQL which is giving me the syntax error. Is there way to know how the event names should be written or should include apostrophe like in here 'Doctor's Letter Share Click. I couldnt find in documentation how it should be and wanted to verify in here.
Copy code
Send request to url <https://mixpanel.com/api/2.0/jql> with params: {'script': \"\\                function main() {\\                    return Events({\\                        from_date: '2023-07-27',\\                        to_date:   '2023-07-27',\\                        event_selectors:[{event:'Doctor's Letter Share Click'}]\\                    })\\                    \\                }\\                \"}
Received status code 412
Mixpanel error: Uncaught exception SyntaxError: Unexpected identifier                        event_selectors:[{event:'Doctor's Letter Share Click'}]                                                        ^Stack trace:SyntaxError: Unexpected identifier