Apr 17, 202411:42 PM - edited Apr 18, 202412:48 AM
Member
Marketing Events API Methods Not Working
SOLVE
I'm using the "Get a marketing event" endpoint in the Marketing Events API but the method shown in the documentation isn't working, paritcuarly the following part of the example:
INFO [ 'constructor', 'completeWithHttpInfo', 'complete' ]
Is this is an error in the documentation or am I doing something wrong? I already verified that the right scopes are enabled in the private app. I also couldn't find anything online saying the method was deprecated. Please help!
Generally the way I've found around the "is not a function" error is by structuring my request a bit differently. So if this code below doesn't work immediately (with the search endpoint), I'd try using the original GET endpoint you're using, then adding in the externalAccountId using the same structure as below.
Generally the way I've found around the "is not a function" error is by structuring my request a bit differently. So if this code below doesn't work immediately (with the search endpoint), I'd try using the original GET endpoint you're using, then adding in the externalAccountId using the same structure as below.
Thanks, Edd! I tried this, and it's successful; however, it's not returning the JSON for the Marketing Event that I'm querying with the queryParam constant. Here's the log:
INFO { results: [] }
Also, can you provide a little clarity to this remark?
"I'd try using the original GET endpoint you're using, then adding in the externalAccountId using the same structure as below."
What would the syntax be for using the getById() method? Or perhaps I'm misunderstanding you. Thanks again for your response!