def _track_on_hubspot(webuser, properties):
    # Note: Hubspot recommends OAuth instead of api key

    _hubspot_post(
        url=u"https://api.hubapi.com/contacts/v1/contact/createOrUpdate/email/{}".format(
            urllib.quote(webuser.get_email())
        ),
        data=json.dumps(
            {'properties': [
                {'property': k, 'value': v} for k, v in properties.items()
            ]}
        ),
    )
Grab the client directory.
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/analytics/tasks.py/_track_on_hubspot--crossover with--dataset/ETHPy150Open zulip/zulip/api/integrations/perforce/git_p4.py/getClientRoot