import requests


def _post_request(url, token, body=None):
    """
    Send a requests.post request
    :param url: URL
    :param token: authorization token
    :param body: body to be sent with request
    :return: json of response
    """
    headers = {
        'Authorization': 'bearer ' + token
    }

    if body is None:
        res = requests.post(url, headers=headers)
    else:
        res = requests.post(url, headers=headers, data=body)
    if res.status_code == 200:
        pass
    else:
        pass
    return res.json()