#NEWLINE# @ route ( '/media_like/<id>' ) #NEWLINE# def media_like( id ) : #NEWLINE# #INDENT# access_token = request . session [ 'access_token' ] #NEWLINE# api = client . InstagramAPI ( access_token = access_token , client_secret = CONFIG [ 'client_secret' ] ) #NEWLINE# api . like_media ( media_id = id ) #NEWLINE# redirect ( '/recent' )