toggltrack.py
def stopTimeEntry(requests, entry_id, auth):
    """
    stop is easier.  just include entry_id in the uri
    """
    headers = {
        'Content-Type': 'application/json',
        'Authorization': auth,
        'Content-length': "0"
    }

    uri = 'https://api.track.toggl.com/api/v8/time_entries/'
    uri += str(entry_id) + '/stop'

    print()
    print('[debug] header')
    print(headers)
    print('[debug] uri')
    print(uri)
    # response = requests.put(uri,
    #                         headers=headers,
    #                         auth=(auth, 'api_token'))
    response = requests.put(uri, headers=headers)

    print('[debug] response.text')
    print(response.text)
    print()

    stop is easier.  just include entry_id in the uri
    
stop is easier.  just include entry_id in the uri
stop is easier . just include entry_id in the uri
def stopTimeEntry(requests, entry_id, auth):
    headers = {
        'Content-Type': 'application/json',
        'Authorization': auth,
        'Content-length': "0"
    }
    uri = 'https://api.track.toggl.com/api/v8/time_entries/'
    uri += str(entry_id) + '/stop'
    print()
    print('[debug] header')
    print(headers)
    print('[debug] uri')
    print(uri)
    response = requests.put(uri, headers=headers)
    print('[debug] response.text')
    print(response.text)
    print()
def stopTimeEntry ( requests , entry_id , auth ) : headers = { 'Content-Type' : 'application/json' , 'Authorization' : auth , 'Content-length' : "0" } uri = 'https://api.track.toggl.com/api/v8/time_entries/' uri += str ( entry_id ) + '/stop' print ( ) print ( '[debug] header' ) print ( headers ) print ( '[debug] uri' ) print ( uri ) response = requests . put ( uri , headers = headers ) print ( '[debug] response.text' ) print ( response . text ) print ( )
stop is easier.
stop is easier .
"""
    stop is easier.  just include entry_id in the uri
    """ # response = requests.put(uri, #                         headers=headers, #                         auth=(auth, 'api_token'))
requests
entry_id
auth