MeltwaterArchive / datasift-dotnet

The official .NET API library for DataSift.
MIT License
12 stars 6 forks source link

Get JSON into Raven #16

Open jchannon opened 10 years ago

jchannon commented 10 years ago

I would like to store the interaction into RavenDB but storing Interaction produces no data I assume because of the way Interaction is a JToken. Can you suggest how to store an interaction as a type into Raven?

dugjason commented 10 years ago

I am new to .NET and Raven, though it seems that the type of interaction you receive from DataSift should always have the JTokenType of 'Object'. Assuming you are consuming your interactions using DataSift's Live Streaming API, via the .NET client library, you should always receive your interactions as single new-line separated JSON objects.