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
0
votes
1 answer

Call Back Url With Url In A Query String Not Creating Request Token With TweetSharp

I am trying to send a returnurl query string to the GetRequestToken, but I either get a "?" as the token response, or the "#" gets stripped out on the return callback. When I do get a valid response back, the # and everything after it is stripped…
Mike Flynn
  • 22,342
  • 54
  • 182
  • 341
0
votes
1 answer

How to follow a user using the TweetSharp API

I'm using the TweetSharp API, and I need to follow people in a C# List, however, I'm having trouble. The appropriate code is as follows: var results = service.Search(new SearchOptions {Q = hashtag}); //hashtag string entered by user List
0
votes
2 answers

tweetsharp search

i am using tweetsharp to search for public posts. I am using following code to search: TwitterSearchResult tsr = Service.Search(new SearchOptions() { Q = keyword, Resulttype = TwitterSearchResultType.Mixed, IncludeEntities=false}); Here is my…
user2130865
0
votes
1 answer

Twitter : Cannot deserialize a JSON array into an object because the type requires a JSON object

I am using TweetSharp to retrieve tweets which in turn uses JSON.NET by Newtonsoft. And this is the app code, very simple. ListTweetsOnUserTimelineOptions listTweetsOnUserTimelineOptions = new…
doglin
  • 1,651
  • 4
  • 28
  • 38
0
votes
1 answer

tweetsharp / SendTweetOptions - Using The Location Parameters

I am trying to use the location parameters in TweetSharp's SendTweetOptions object. The following code works but once tweeted it does not include any location specific data (latitude & longitude do contain valid values)... SendTweetOptions…
0
votes
2 answers

send tweets using TweetSharp

Currently, I have to post a Tweets (messages ) to the Twitter account. Im using TweetSharp 2.3.1. Following is my code : var service = new TwitterService(ConsumerKey, ConsumerSecret); service.AuthenticateWith(Token, TokenSecret); TwitterStatus…
4pwn
  • 1
  • 1
  • 2
0
votes
2 answers

When using Twitter OAuth with TweetSharp I keep getting asked to authorize my app every time a user wants to log in

I'm trying to implement OAuth with twitter so my users can log into my site using their Twitter IDs. For this I am using the TweetSharp library. Following the examples they have I wrote the following code which seems to work. public…
paddingtonMike
  • 1,441
  • 1
  • 21
  • 37
0
votes
1 answer

Pull Twitter Profile Image in Twitter API VERSION 1.1

Is there a quick way to pull twitter profile image in Javascript? I need to get the url of the FULL image (not avatar size). Thanks. Any code sample is good.
Amit
  • 15,217
  • 8
  • 46
  • 68
0
votes
2 answers

(Simple) problem with TweetSharp

Here is what I did : 1. I create a C# project from VS .NET 2005 (Console application) 2. Attached the library from tweetsharp.com 3. I copied and pasted and tried to run The code //setting up a request is unchanged var twitter =…
henry
  • 969
  • 2
  • 11
  • 21
0
votes
1 answer

C# - How to get Twitter Access Tokens for a WPF application?

I'm using Tweetsharp library to get some tweets from one user on Twitter ( it's a celebrity, so it won't be the user of my application ), but I need to fetch two access tokens for this operation. How can I get these tokens? I'll store them in my…
Alaa Salah
  • 885
  • 1
  • 13
  • 23
0
votes
2 answers

Does twitter api 1.1 work for windows phone

I need to get my twitter Home_timeline tweets from the last few days on my windows phone app. Im trying different examples with Tweetsharp Tweetsharp Example and with OAuth1.1 . I am login to twitter but not able to post and retriev tweets from…
Satti
  • 559
  • 2
  • 8
  • 26
0
votes
1 answer

Cannot tweet with media using TweetSharp 2.3.0 on Windows Phone

I have problem with SendTweetWithMedia(). Here is how I implemented var service = new TwitterService(TwitterSettings.ConsumerKey, TwitterSettings.ConsumerSecret); service.AuthenticateWith(twitterAccess.AccessToken,…
Agile Hobo
  • 322
  • 3
  • 14
0
votes
1 answer

Cannot use SendTweetWithMediaOptions in windows phone

I am using TweetSharp in a Windows Phone project and no matter what I do, I can't post a tweet with media. I am getting the exception 195: Missing or invalid parameter. I read that usually this can be a cause of invalid data, like the stream that I…
0
votes
1 answer

Return the most recent Tweet sent by the account/user

I'm using TweetSharp with a view to simply getting the most recent tweet sent by the given Twitter account and posting it to a label on a page of my site. However, Im either lacking in Googleskillz or the TweepSharp documentation is not amazing. Ive…
Phill Healey
  • 3,084
  • 2
  • 33
  • 67
0
votes
1 answer

TweetSharp setting proxy server

How can I specify detailed proxy settings in TweetSharp? By this I mean in addition to the server name, details like Port, Username, Password etc? As of now the only parameter, is Dim X as New TwitterService(Key,Secret) X.Proxy = "abcd" Which…
J. Minjire
  • 1,003
  • 11
  • 22