Bot1/hello_world/twitterRetweet.py [41:58]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        apiuse = authenticate_twitter()
        
        searchString = os.environ['TweetSearchString']
        
        numberOfTweets = 5
        print('String to look for: {0} and nb of tweets to retrieve: {1}'.format(searchString,numberOfTweets))
        
        retweet(apiuse, searchString, numberOfTweets)

    except Exception as e:
        print(e)
    
    return {
        "statusCode": 200,
        "body": json.dumps(
            {"message": "TwitterPoller"}
        ),
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



Bot1/instrumented_file/twitterRetweet.py [46:63]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        apiuse = authenticate_twitter()
        
        searchString = os.environ['TweetSearchString']
        
        numberOfTweets = 5
        print('String to look for: {0} and nb of tweets to retrieve: {1}'.format(searchString,numberOfTweets))
        
        retweet(apiuse, searchString, numberOfTweets)

    except Exception as e:
        print(e)
    
    return {
        "statusCode": 200,
        "body": json.dumps(
            {"message": "TwitterPoller"}
        ),
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



