Exemplo n.º 1
0
def retweet():
    wrapper = TwitterApiWrapper(
            app.config['TWITTER_CONSUMER_KEY'],
            app.config['TWITTER_CONSUMER_SECRET'],
            app.config['TWITTER_ACCESS_TOKEN'],
            app.config['TWITTER_ACCESS_TOKEN_SECRET'])
    id = request.args.get('id', '')
    if id:
        wrapper.retweet(id)
    return jsonify(result='ok')