Skip to content

Instantly share code, notes, and snippets.

@umair-khokhar
Last active October 4, 2018 19:14
Show Gist options
  • Save umair-khokhar/9eba6fbc92898f5f09bf53623bd0c6dd to your computer and use it in GitHub Desktop.
Save umair-khokhar/9eba6fbc92898f5f09bf53623bd0c6dd to your computer and use it in GitHub Desktop.
import json
import requests
import random
api_url_base = "https://track.hubspot.com/"
api_key = "14adedf5-8f33-41fc-a304-e7c72633f03c"
headers = {
'User-Agent': 'My User Agent 1.0',
'From': '[email protected]' # This is another valid field
}
http_event_api_call_url = "{0}v1/event?hapikey={1}&_n=000006396555&_a=3322366&[email protected]".format(api_url_base, api_key) #formatins string
print(http_event_api_call_url)
response = requests.get(http_event_api_call_url, headers=headers)
print(response.content)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment