(person_id, cause, explanation='')
There are three options for cause:
        0 : Other and requires an explanation
        1 : Feels like spam and no explanation
        4 : Inappropriate Photos and no explanation
There are three options for cause:
        0 : Other and requires an explanation
        1 : Feels like spam and no explanation
        4 : Inappropriate Photos and no explanation
There are three options for cause : 0 : Other and requires an explanation 1 : Feels like spam and no explanation 4 : Inappropriate Photos and no explanation
def report(person_id, cause, explanation=''):
    '''
    There are three options for cause:
        0 : Other and requires an explanation
        1 : Feels like spam and no explanation
        4 : Inappropriate Photos and no explanation
    '''
    try:
        url = config.host + '/report/%s' % person_id
        r = requests.post(url, headers=headers, data={
                          "cause": cause, "text": explanation})
        return r.json()
    except requests.exceptions.RequestException as e:
        print("Something went wrong. Could not report:", e)
def report ( person_id , cause , explanation = '' ) : try : url = config . host + '/report/%s' % person_id r = requests . post ( url , headers = headers , data = { "cause" : cause , "text" : explanation } ) return r . json ( ) except requests . exceptions . RequestException as e : print ( "Something went wrong. Could not report:" , e )