I'm trying to get either the latest activity or all activity, I've checked my code with events middle REM URL so I know it's authenticating OK, but the results are empty any help would be great here, thanks!
Keep in mind: There isn't any 'Get all' method for Timeline events, since they were not designed to be exported by a 3rd party. If you need some sort of bulk export of AskNicely events, I'd recommend trying to do so in AskNicely.
Thanks for the additional information. It's tough to say what's going on in more detail since I'm not familiar with the language you're using. Is there any way for you you log the full, raw response you're getting from HubSpot, including the response code? That will likely give me more information on whether or not this is an issue on the HubSpot side.
The tl;dr is: The AskNicely events are custom timeline events created by the AskNicely integration, not engagements. Custom timeline events for integrations aren't accesible via the API unless you have the external event ID that was used to create the event. This is becasue the Timeline API provides methods for an integration to create timeline events, but does notprovide methods for a third party (i.e. a different integration) to access those methods.
Keep in mind: There isn't any 'Get all' method for Timeline events, since they were not designed to be exported by a 3rd party. If you need some sort of bulk export of AskNicely events, I'd recommend trying to do so in AskNicely.
I'm not particularly familiar with the language you're using, but based on this Stackoverflow post, nothing seems particularly out of order. Can you give me some more information on what exactly this line is doing?
I'm wondering if oXMLHTTP.responseText actually does have a value, but this line is interfering somehow? Also, can you include some more information on the headers being set here? Is it possible that you're getting a 415 or something?