Exemple #1
0
    def test_streamer_get_specified_conversation_msgs(self):
        twit = Streamer()
        output = twit.get_specified_conversation_msgs("10349526")
        status_code = output['response']['status']

        # Check to see if the Status code returned by the Web Call is 200 which is success
        self.assertEqual(200, status_code)
Exemple #2
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from pystocktwits import Streamer
from pystocktwits.utils import *

# Create a Twit Streamer
twit = Streamer()

# Pass in all parameters to query search
raw_json = twit.get_specified_conversation_msgs(conversation_id="10349526",
                                                since=1,
                                                max=30,
                                                limit=30,
                                                callback=None)

# Return the raw_json as a JSON file
return_json_file(raw_json,
                 "../sample_json_output/get_specified_conversation_msgs.json")

print(raw_json)