def oauth2_dance(consumer_key, consumer_secret, loop=None):
loop = asyncio.get_event_loop() if loop is None else loop<EOL>client = BasePeonyClient(consumer_key=consumer_key,<EOL>consumer_secret=consumer_secret,<EOL>auth=oauth.OAuth2Headers)<EOL>loop.run_until_complete(client.headers.sign())<EOL>return client.headers.token<EOL>
oauth2 dance

Parameters
----------
consumer_key : str
    Your consumer key
consumer_secret : str
    Your consumer secret
loop : event loop, optional
    event loop to use

Returns
-------
str
    Bearer token