pivotalcli/api/me.py

10 lines
296 B
Python

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()