pivotalcli/api/me.py
2018-04-03 12:56:07 +02:00

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