Twitter Streaming API .NET library [closed] - c#

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I am currently trying to write some code to consumer the user stream from the Twitter streaming API:
http://dev.twitter.com/pages/user_streams
I am struggling to connect to it using basic auth and assume (the docs don't say) that OAuth is required.
However I cannot find a Twitter .NET library that supports streaming and OAuth (actually, haven't found any with decent samples/docs on consuming the streaming API).
Does anyone know of any? Currently I have written my own code to consume the sample stream using C# and dynamic but really don't want to have to implement OAuth (people say its complex).
Edit:
Although, I have been able to get an access token and access token secret via the TweetSharp library fine, I have no clue on how to generate the required headers/implement oauth, which could be another option I guess rather than a full library.
Short version:
Looking for a library that supports streaming API and OAuth
Advise on implementing OAuth manually

As I explained in this post Consuming twitter stream API, Tweetinvi API provides easy to configure Streaming API access.
You can download it here : http://tweetinvi.codeplex.com/
A Stream class exist and will enable you to easily implement a delegate to read the content coming from Twitter.
The class has been tested on real-life projects and is able to retrieve millions of tweets per day.
I am one of the developer working on the project.

Check Shannon Whitley post:
Twitter oAuth with .NET

I've used the TweetSharp library in the past, which supports OAuth.

Related

Language Translation API C# [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I am attempting to create a natural language processing program in which I must be able to translate words and sentences as well as getting their parts of speech. I have heard that you can implement Google Translate API in your program, but have worked on it with no luck for the past 2 weeks. I have tried looking at other translation services such as this, but with my very limited background in C#, I can not make much out of the article. Can anybody provide me with a simple walk through, I would like to learn what I am doing so I can further my knowledge of C#, that I can use to be able to accomplish my goal. It does not have to be the Google API, but any help is greatly appreciated!
Two mainstream options are
the Microsoft API, this is free to a certain limit
the Google API is a paid service
An cheap and dirty option would be to call the Google translate directly via a HTTP request (in another words screen scrape the Google translate page) with the new ASP.NET Web API its quite easy to do HTTP requests elegantly. eg: to translate the English phrase "test this" from English to French you need the below URL.
http://translate.google.com/#en/fr/test%20this
Here is the asp.net web api resource.
I don't think you can use the code from the article in the way you intend. Since it's writing Bing took over altavista and changed what the destination of the url is, and this code didn't do any translation itself anyway, it just passes it off to babelfish to chew on but not in a way that is stable long term.
I'd go with google translate https://developers.google.com/translate/v2/getting_started
Best of luck!

Hosting a web service with asp.net for iPhone application [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
we got a server at my job (windows server 2003 with sql server 2005)
Now i need to deploy a web service that will be consume in a iPhone application...
I am very new to .net and i really don't know how to set this web service online.
I have created a asp.net web service c# app and i want it to be accessible remotely so i can consume it thought my iPhone app. If you have any tutorial or tricks to do this! Help. Thanks
Here are couple of tutorials:
For SOAP Services
For Rest Service
Both of these use JSON for data and use a third party library like JSONKit, since native iPhone libraries don't have JSON support.
Edit:
As #MishieMoo mentioned iOS 5 built-in api supports JSON. For completeness I have added link to iOS5 tutorial.

best way to create API [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
We are about to create an API so that our customers can connect to us, subscribe to a service and then consume that service. what is the best way to implement this? we work in C#, .NET. We want something like this:
we will provide a username and password to our customer to connect with our API. (how to implement this, using database?)?
after successful connection , customer will subscribe to our service. (how to check that customer is already connected? )
after subscription customer can calls API methods.
kindly tell me the best way.
Have you ever look servicestack ? It's awesome ,totally DTO based and very easy to create API for .net
Please look out my blog post about that
Check this thread for authentication options in ServiceStack.
https://groups.google.com/d/topic/servicestack/U3XH9h7T4K0/discussion
Look at example here
A simple solution is to supply a Login method, your customers must call this one with username and password before consume the service, you can issue a token to the client once username/password validated, usually stored in a database; then the client can call your API method with the token attached for each request so you can check whether the client has called Login method or not; the token will be destroyed after the client finished using service by either providing a Logout method or setting up a expire time for each token.
This is for your consideration. About "best" way, I think there's no such one way best for all situation. You will find the best way for you.
This might inspire you or prove useful.
http://visualstudiogallery.msdn.microsoft.com/b1d767d9-d6bf-41ee-89a8-313d338e63b6
There are also some links in there that talk about using API keys so you can control who's using your api why that's essential.

How to tweet with Twitterizer by using C# [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
i downloaded latest Twitterizer . added these references.
using Twitterizer.Core;
using Twitterizer.Data;
using Twitterizer.Entities;
using Twitterizer.Streaming;
now what do i need to do ? i searched internet but examples are old and probably not supported by twitter. can anbody explain me step by step ?
i just want to tweet via my account.
Edit: Problem solved by using TweetSharp. i suggest you to use TweetSharp instead of Twitterizer .
You should include using Twitterizer; and not the others.
I have an example application posted on the downloads page: http://www.twitterizer.net/downloads/ It's an ASP.NET application, but the code and usage will be the same for desktop applications.
You can find access to methods by invoking methods on the main classes, such as:
TwitterUser
TwitterStatus (for tweets)
TwitterTimeline
You may also want to check out the code samples posted: http://www.twitterizer.net/category/code-sample/
Have you see the code examples on this page:
http://www.twitterizer.net/
Also see the docs page:
http://www.twitterizer.net/documentation/
The API seems a little confusing to me, never heard of this library.
Why not use Linq to Twitter : http://linqtotwitter.codeplex.com/
Its used by a lot of people.

Facebook/ Twitter with dotnetopenauth? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I've pretty much got OpenID working using the DotNetOpenAuth library. Now I would like users to be able to use Facebook and Twitter to login.
This requires OAuth so I am looking for a tutorial on how to use DotNetOpenAuth OAuth.
I'm having trouble trying to find some simple tutorials on how to do this.
Can anyone please help?
At the time of me answering this question, DotNetOpenAuth has a public Community Tech Preview (CTP) which is available to download.
Download that source code. Should be a .7z file. You can use 7-Zip to unzip the code if you don't already have it (it's free).
Open up the samples source code solution in Visual Studio. I'm using VS2010 but I think there's also a VS2008 solution file.
Now, open up the web.config file for the OAuthClient project.
Next, edit the following settings :-
<!-- Facebook sign-up: http://developers.facebook.com/setup/ -->
<add key="facebookAppID" value="------"/>
<add key="facebookAppSecret" value="------------"/>
You can get these values from your application on Facebook.
Debug/Run the OAuthClient Web Application. This will start an instance of Cassini/Visual Studio Developer Server and a web browser should open:
VoilĂ ! you can now connect to Facebook to log in.
If you get errors, then you need to make sure that:
You've manually changed the Facebook app settings in your web.config file.
You've correctly setup your app settings in the Facebook developer website.

Categories