use newer bulk endpoint with current user in path

This commit is contained in:
Alan Hamlett 2017-11-09 07:31:28 -08:00
parent 2266f3c261
commit 2b2c48b2d7
3 changed files with 3 additions and 3 deletions

View file

@ -49,7 +49,7 @@ def send_heartbeats(heartbeats, args, configs, use_ntlm_proxy=False):
api_url = args.api_url
if not api_url:
api_url = 'https://api.wakatime.com/api/v1/heartbeats.bulk'
api_url = 'https://api.wakatime.com/api/v1/users/current/heartbeats.bulk'
log.debug('Sending heartbeats to api at %s' % api_url)
timeout = args.timeout
if not timeout: