The three docs you linked above are methods of the Tracking Code Javscript API, and are used to send the relevant data into HubSpot, not pull that data from HubSpot. What exactly is your goal? It sounds like yu're trying to pull analytics events from HubSpot via the API, is that right?
While it's not possible to pull the full analytics history for specific contacts, you can pull analytics info via the Analytics API.