SiftScienceNet is a .NET class library that provides an easy-to-use async interface for the SiftScience SiftScience web api.
Enter Install-Package SiftScienceNet into the NuGet package manager console.
SiftScienceClientsiftClient=newSiftScienceClient("<Your Api key>");Than to create an events
varresponse=awaitsiftClient.CreateOrder(newOrder{ ...});varresponse=siftClient.CreateOrder(newOrder{Amount=1000000,BillingAddress=newAddress{Address1="190 Mulhouse street",Address2="Unit 5",City="Sydney",Country="AU",FullName="Mathieu Kempe",Region="NSW",ZipCode="2021"},ShippingAddress=newAddress{Address1="address1",Address2="address2",City="Sydney",Country="AU",FullName="Mathieu kempe",Region="NSW",ZipCode="2021"},CurrencyCode="USD",Items=newList<Item>{newItem{Category="digital",CurrencyCode="USD",Tags=newList<string>{"tag1","tag2","tag3"},Quantity=4,Brand="brand",Color="red",Isbn="isbn",ItemId="12334",Manufacturer="rebok",Price=100000000,ProductTitle="Some product",Size="Large",Sku="V4C3D5R2Z6",Upc="654321",}},UserId="mathieukempe@gmail.com",UserEmail="mathieukempe@somemail.com",OrderId="12234",SellerUserId="4",ExpeditedShipping=false,PaymentMethods=newList<PaymentMethod>{newPaymentMethod{CardBin="123456",CardLast4="1234",PaymentType=PaymentType.CreditCard}},}).Result;varresponse=siftClient.Transaction(newTransaction{Amount=100M.ToMicros(),BillingAddress=newAddress{Address1="312 Mulhouse street",Address2="Unit 123",City="Sydney",Country="AU",FullName="Mathieu kempe",Region="NSW",ZipCode="2021"},CurrencyCode="AUD",UserId="1",OrderId="234423",SessionId="u4ryixmnkwxm1aviiyq4yez1",ShippingAddress=newAddress{Address1="312 Mulhouse street",Address2="Unit 123",City="Sydney",Country="AU",FullName="Mathieu kempe",Region="NSW",ZipCode="2021"},PaymentMethod=newPaymentMethod{CardBin="123456",CardLast4="1234",PaymentType=PaymentType.CreditCard,AvsResultCode="T",PaymentGateway=PaymentGateway.Paypal,},TransactionStatus=Status.Success,TransactionType=TransactionType.Capture,UserEmail="mathieukempe@somemail.com",TransactionId="234423"}).Result;siftClient.CreateAccount(newAccount{UserId="1",UserEmail="mathieu@selz.com",SessionId="54f3ds25423523gfdsgf4gfds",Name="Mathieu Kempe",SocialSignOn=SocialSignOn.Facebook,BillingAddress=newAddress{City="Mulhouse",Country="FR"}}).Result;siftClient.UpdateAccount(newAccount{UserId="1",UserEmail="mathieukempe@somemail.com",SessionId="54f3ds25423523gfdsgf4gfds",Name="Mathieu Kempe",BillingAddress=newAddress{Address1="address1",Address2="address2",City="Sydney",Country="AU",FullName="Mathieu kempe",Region="NSW",ZipCode="2021"},ChangedPassword=true}).Result;siftClient.AddItemToCart("1",newItem{Category="digital",CurrencyCode="USD",Tags=newList<string>{"tag1","tag2","tag3"},Quantity=4,Brand="brand",Color="red",Isbn="isbn",ItemId="12334",Manufacturer="reebok",Price=100000000,ProductTitle="Some product",Size="Large",Sku="2342",Upc="234423",},"54f3ds25423523gfdsgf4gfds").Result;siftClient.RemoveItemToCart("1",newItem{Category="digital",CurrencyCode="USD",Tags=newList<string>{"tag1","tag2","tag3"},Quantity=4,Brand="brand",Color="red",Isbn="isbn",ItemId="12334",Manufacturer="reybok",Price=100000000,ProductTitle="Some product",Size="Large",Sku="2342",Upc="234423",},1,"54f3ds25423523gfdsgf4gfds").Result;siftClient.SendMessage("1","4","some subject","hello ").Result;siftClient.Login("1","u4ryixmnkwxm1aviiyq4yez1",true).Result;siftClient.Login("1","u4ryixmnkwxm1aviiyq4yez1",false).Result;siftClient.Logout("1").Result;siftClient.LinkSessionToUser("1","u4ryixmnkwxm1aviiyq4yez1").Result;siftClient.Label("1",true,newList<Reason>{Reason.Chargeback,Reason.Funneling}).Result;ScoreResponsescoreResponse=siftClient.GetSiftScore("1").Result;SiftScience sending historical data
Order, Transaction and Account have a Time property
varresponse=siftClient.CreateOrder(newOrder{Time=DateTime.Now.AddDays(-4).ToUnixTime()
...