Authentication failed using .Net sample code


#1

I have the API Key and Hash Key that I get from the dashboard page.
And then Ive download the example code from : https://github.com/datasift/datasift-dotnet
and I’m trying to create new query that provided as part of the sample.
But i’m keep getting error Authentication failed.
Could you please advice why? Thanks

Cheers
Nita


#2

You need your username and API key to authenticate calls to the API - the stream hash specifies which stream you would like to consume. An example call to the API could be:

curl https://stream.datasift.com/<stream-hash>?username=<my-username>&api_key=<my-api-key>

Please ensure you are using the correct username and API key to authenticate.