()
Returns your own profile data
Returns your own profile data
Returns your own profile data
def get_self():
    '''
    Returns your own profile data
    '''
    try:
        url = config.host + '/profile'
        r = requests.get(url, headers=headers)
        return r.json()
    except requests.exceptions.RequestException as e:
        print("Something went wrong. Could not get your data:", e)
def get_self ( ) : try : url = config . host + '/profile' r = requests . get ( url , headers = headers ) return r . json ( ) except requests . exceptions . RequestException as e : print ( "Something went wrong. Could not get your data:" , e )