import requests
from requests import post


def fetch(url):
    return requests.get(url).json()  # cotterpin:expect


def submit(url, payload):
    return post(url, json=payload)  # cotterpin:expect


def generic(method, url):
    return requests.request(method, url, headers={"accept": "application/json"})  # cotterpin:expect
