What is the difference between datasift.client.subscribe and datasift.push.create_from_hash in the Python API?


#1

In reading over the API documentation it’s not clear to me when I should be using client.subscribe versus datasift.push.create_from_hash.

In digging into the source code, they appear to be doing different things under the hood.

Are they interchangeable?

For reference, this is what I’m looking at:
http://datasift.github.io/datasift-python/datasift.html


#2

Hi,
The client.subscribe method will start a connection using our streaming service, whereas datasift.push.create_from_hash will create a delivery job using our robust push delivery service. Push will send the data directly to a specified destination.

Hope that clears things up.