pivotalcli/api/me.py

10 lines
296 B
Python
Raw Normal View History

2018-04-03 10:56:07 +00:00
import requests
from requests.auth import HTTPBasicAuth
from typing import Dict, Any
def get(username: str, password: str) -> Dict[str, Any]:
r = requests.get('https://www.pivotaltracker.com/services/v5/me',
auth=HTTPBasicAuth(username, password))
return r.json()