#NEWLINE# def _parse_access_token( self , request , **kwargs ) : #NEWLINE# #INDENT# if ( 'access_token' in request [ 'query' ] ) : #NEWLINE# #INDENT# return request [ 'query' ] [ 'access_token' ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( 'access_token' in request [ 'body' ] ) : #NEWLINE# #INDENT# return parse_qs ( request [ 'body' ] ) [ 'access_token' ] [ 0 ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( 'Authorization' in request [ 'headers' ] ) and kwargs [ 'headers' ] [ 'Authorization' ] ) : #NEWLINE# #INDENT# auth_header = request [ 'headers' ] [ 'Authorization' ] #NEWLINE# if auth_header . startswith ( 'pop ' ) : #NEWLINE# #INDENT# return auth_header [ len ( 'pop ' ) : ] #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# return None