Questions tagged [tweetsharp]

TweetSharp is a Twitter API library for adding Twitter to web and mobile applications.

Note The original TweetSharp is no longer being maintained. The currently published Nuget package for TweetSharp contains known problems which are fixed in the source available in the GitHub repository. There are also several forks, with alternate Nuget packages available, that contain the fixes from the repo.

TweetSharp v2 is a fast, clean wrapper around the Twitter API. It uses T4 templates to make adding new endpoints easy. It can also be used as an example of how to write a service-specific API wrapper using Hammock.

Resources

Installation

TweetSharp can most easily be installed through its NuGet package.

Install-Package TweetSharp 

From the Github Introduction to Tweetsharp: TweetSharp is a Twitter API library that greatly simplifies the task of adding Twitter to your desktop, web, and mobile applications. You can build simple widgets, or complex application suites using TweetSharp. The second version, a rewrite, was designed to be lighter, faster, and more intuitive than the original. You write fewer lines of code, make fewer decisions, and get better results.

Keywords: twitter tweetsharp web api http rest wrapper json xml wp7 mango

234 questions
2
votes
1 answer

TweetSharp Authorization on WP7 (oAuth)

I am trying to make a WP7 app that would Tweet short messages user wants to. The problem is that I always get Unauthorized response. Here is what I do: First, I initialize Service: TwitterService twService; twService = new…
Pijusn
  • 11,025
  • 7
  • 57
  • 76
2
votes
1 answer

TweetSharp 2.0 search and Geocode

I'm trying to get TweetSharp to perform a search on tweets from within a certain area. Unfortunately this always returns 0 results. public IEnumerable Search(string terms) { TwitterSearchResult result =…
Andy March
  • 586
  • 1
  • 5
  • 20
2
votes
2 answers

Tweetsharp .NET library not working online

I've been using Tweetsharp library to post to Twitter for over a year now. The library suddenly stopped working on my online website 2 weeks ago. However, when i run the code locally, the library is working perfectly. Dim TwitterConsumerKey =…
Sinan Noureddine
  • 495
  • 5
  • 16
2
votes
1 answer

TwitterService.GetRequestToken throws exception "Value cannot be null. Parameter name: query"

An week ago I faced a problem with getting request token from TweetSharp library, every time it throws null exception. Previously it works, credentials are valid. The same problem with test from https://github.com/shugonta/tweetsharp Looks like…
2
votes
2 answers

Why is GetRequestToken not working?

I have the following little snippet that won't compile: using TweetSharp.Twitter.Fluent; //... var twitter = FluentTwitter.CreateRequest(); twitter.Authentication.GetRequestToken("...", "..."); ...and it gives me the following…
Nathan Osman
  • 71,149
  • 71
  • 256
  • 361
2
votes
0 answers

Send Tweet with Emoji TweetSharp

I am using TweetSharp to send tweets with vb.net I can send text tweet from code,there is no problem. But i want to send text with emoji . I have checked google but there isn't example. For example i want to use this emoji with my text Dim…
Pisagor
  • 147
  • 1
  • 2
  • 16
2
votes
3 answers

C# TweetSharp not sending Tweets

I am using TweetSharp to send tweets to users (currently testing it) however it keeps coming back with Bad Authentication Data {"errors":[{"code":215,"message":"Bad Authentication data."}]} I have checked my app settings and it has full read and…
KJSR
  • 1,679
  • 6
  • 28
  • 51
2
votes
1 answer

How do I get my direct messages with TweetSharp?

How do I get my direct messages with TweetSharp? I tried this: var twitterApp = new TwitterService(OAuthConsumerKey, OAuthConsumerSecret); twitterApp.AuthenticateWith(OAuthToken, OAuthTokeySecret); TwitterUser user =…
Artorias
  • 23
  • 1
  • 6
2
votes
2 answers

How to post Special character tweet using asp.net API?

I m using Given below code to post the tweet on twitter. But when we upload it on the server then special character (!,:,$ etc) tweets not published on twitter. this code is working fine in the local system string key = ""; string secret =…
umang
  • 29
  • 1
  • 4
2
votes
0 answers

Arithmetic operation resulted in an overflow - TweetSharp

Code: TwitterService twitter = new TwitterService(oauth_consumer_key, oauth_consumer_secret); twitter.AuthenticateWith(oauth_consumer_key, oauth_consumer_secret, oauth_token, oauth_token_secret); TwitterSearchResult res = twitter.Search(new…
Tweety01
  • 176
  • 2
  • 17
2
votes
1 answer

Retrieving all tweets of a particular hashtag using TweetSharp

I am using tweetsharp library to retrieve tweets of a particular hashtag var service = new TwitterService(Consumer Key, Consumer Secret); service.AuthenticateWith("Access Token", "AccessTokenSecret"); TwitterSearchResult tweets =…
Farrukh Ahmed
  • 473
  • 4
  • 11
  • 26
2
votes
3 answers

How to setup a project to use TweetSharp

I am trying to follow Pete Brown's introductory WPF tutorial which makes use of the TweetSharp libraries to interact with Twitter. I have downloaded what appears to be the latest TweetSharp binaries (and a few others including the ReleaseCandidate)…
Stuart Helwig
  • 9,318
  • 8
  • 51
  • 67
2
votes
2 answers

Should HtmlEncode be used when updating twitter status with Tweetsharp?

I am using tweetsharp to send tweets. var response = _twitter.AuthenticateWith(item.TwitterToken, item.TwitterSecret) .Statuses().Update(HttpUtility.HtmlEncode(item.Tweet)).AsXml().Request().Response; As you may have noticed, above I am…
Aaron
  • 1,031
  • 10
  • 23
2
votes
0 answers

TweetSharp Send direct message with image (C#)

How to send direct message with image in Twitter using TweetSharp? (C#) I didn't found how to do it. SendDirectMessageOptions msgOpt = new SendDirectMessageOptions(); msgOpt.UserId = id; msgOpt.Text = "text"; var result =…
2
votes
2 answers

Asp.net System.ArgumentOutOfRangeException Error with ListBox SelectedIndex

I get this error: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name:index. Same code was running perfectly in windows form app, but in asp.net i see this error. My code is here: public…
1 2
3
15 16