Quantcast
Channel: Tweetinvi a friendly Twitter C# library
Viewing all 4126 articles
Browse latest View live

Created Unassigned: possible memory leak with streams [2664]

$
0
0
Hi,

I understand this could probably be / probably is caused by my misunderstanding. But I having out of memory exceptions when running multiple streams over multiple accounts.


In one instance, it was just 5 "followers streams" (watching for new followers to my accounts). It would take a day or so and the out of memory exception would hit.

Another case is trying to connect to a lot more streams (50+)


Are there any "known" gotchas that might explain this? Something I am not releasing handling correctly?


Cheers

Updated Wiki: Home

$
0
0
01/09/2015 - Improving the release 0.9.9.x...

Tweetinvi is on Github!

For a few months already I have migrated Tweetinvi on Github. The only reason for that is the various bugs and downtimes of Codeplex and the fact that they are not fixing or improving the website.

So I invite you all to visit Tweetinvi on Github!

Support us! 

Please support the Tweetinvi team by joining us, rating the application or donating with Paypal :)

What's new? 

User Stream
Download with Nuget
Download latest
Discover the filtered stream

About Tweetinvi

Documentation
Streaming API
Contact us
Rate Tweetinvi
Calendar
More coming soon...
 

Tweetinvi an intuitive C# library for Twitter

Tweetinvi is an intuitive .NET C# library that provides an easy and intuitive access to the Twitter REST and STREAM API 1.1.
Beyond the classical data access it provide many helpers classes that you will use across your projects.

Tweetinvi has been developed so that each of the object have a context. The API provides 3 different classes for Twitter Users, Tweets, Messages that will allow you to perform any query in a single method call.

Streaminvi is the Tweetinvi solution to easily access the Twitter Stream API.
Use our easy to access Stream classes.
- SimpleStream : extract all the data provided by Twitter
- FilteredStream : extract specific data from Twitter

Like some universities' research programs join us and use Tweetinvi Streaming API to extract millions of Tweets per day! The streaming API has now been used for more than a year and keep delivering all the potential of Twitter Stream API.

We hope you enjoy our API.
The Tweetinvi Team.

Updated Wiki: Home

$
0
0
21/01/2016 - Visit, follow and star Tweetinvi github repository!

Tweetinvi is on Github!

For a few months already I have migrated Tweetinvi on Github. The only reason for that is the various bugs and downtimes of Codeplex and the fact that they are not fixing or improving the website.

So I invite you all to visit Tweetinvi on Github!

Support us! 

Please support the Tweetinvi team by joining us, rating the application or donating with Paypal :)

What's new? 

User Stream
Download with Nuget
Download latest
Discover the filtered stream

About Tweetinvi

Documentation
Streaming API
Contact us
Rate Tweetinvi
Calendar
More coming soon...
 

Tweetinvi an intuitive C# library for Twitter

Tweetinvi is an intuitive .NET C# library that provides an easy and intuitive access to the Twitter REST and STREAM API 1.1.
Beyond the classical data access it provide many helpers classes that you will use across your projects.

Tweetinvi has been developed so that each of the object have a context. The API provides 3 different classes for Twitter Users, Tweets, Messages that will allow you to perform any query in a single method call.

Streaminvi is the Tweetinvi solution to easily access the Twitter Stream API.
Use our easy to access Stream classes.
- SimpleStream : extract all the data provided by Twitter
- FilteredStream : extract specific data from Twitter

Like some universities' research programs join us and use Tweetinvi Streaming API to extract millions of Tweets per day! The streaming API has now been used for more than a year and keep delivering all the potential of Twitter Stream API.

We hope you enjoy our API.
The Tweetinvi Team.

Updated Wiki: Home

$
0
0
21/01/2016 - Visit, follow and star Tweetinvi github repository!

Tweetinvi is on Github!

For a few months already I have migrated Tweetinvi on Github. The only reason for that is the various bugs and downtimes of Codeplex and the fact that they are not fixing or improving the website.

So I invite you all to visit Tweetinvi on Github!

Support us! 

Please support the Tweetinvi team by joining us, rating the application or donating with Paypal :)

What's new? 

User Stream
Download with Nuget
Download latest
Discover the filtered stream

About Tweetinvi

Documentation
Streaming API
Contact us
Rate Tweetinvi
Calendar
More coming soon...
 

Tweetinvi an intuitive C# library for Twitter

Tweetinvi is an intuitive .NET C# library that provides an easy and intuitive access to the Twitter REST and STREAM API 1.1.
Beyond the classical data access it provide many helpers classes that you will use across your projects.

Tweetinvi has been developed so that each of the object have a context. The API provides 3 different classes for Twitter Users, Tweets, Messages that will allow you to perform any query in a single method call.

Streaminvi is the Tweetinvi solution to easily access the Twitter Stream API.
Use our easy to access Stream classes.
- SimpleStream : extract all the data provided by Twitter
- FilteredStream : extract specific data from Twitter

Like some universities' research programs join us and use Tweetinvi Streaming API to extract millions of Tweets per day! The streaming API has now been used for more than a year and keep delivering all the potential of Twitter Stream API.

We hope you enjoy our API.
The Tweetinvi Team.

Updated Wiki: Home

$
0
0
21/01/2016 - Visit, follow and star Tweetinvi github repository!

Tweetinvi is on Github!

For a few months already I have migrated Tweetinvi on Github. The only reason for that is the various bugs and downtimes of Codeplex and the fact that they are not fixing or improving the website.

So I invite you all to visit Tweetinvi on Github!

Support us! 

Please support the Tweetinvi team by joining us, rating the application or donating with Paypal :)

What's new? 

User Stream
Download with Nuget
Download latest
Discover the filtered stream

About Tweetinvi

Documentation
Streaming API
Contact us
Rate Tweetinvi
Calendar
More coming soon...
 

Tweetinvi an intuitive C# library for Twitter

Tweetinvi is an intuitive .NET C# library that provides an easy and intuitive access to the Twitter REST and STREAM API 1.1.
Beyond the classical data access it provide many helpers classes that you will use across your projects.

Tweetinvi has been developed so that each of the object have a context. The API provides 3 different classes for Twitter Users, Tweets, Messages that will allow you to perform any query in a single method call.

Streaminvi is the Tweetinvi solution to easily access the Twitter Stream API.
Use our easy to access Stream classes.
- SimpleStream : extract all the data provided by Twitter
- FilteredStream : extract specific data from Twitter

Like some universities' research programs join us and use Tweetinvi Streaming API to extract millions of Tweets per day! The streaming API has now been used for more than a year and keep delivering all the potential of Twitter Stream API.

We hope you enjoy our API.
The Tweetinvi Team.

New Post: TweetInvi 0.9.3.3 to 0.9.10 credentials and other...

$
0
0
Hello,

Please note that Tweetinvi has evolved a lot since release 0.9.3.3.
Tweetinvi has migrated on Github and you can find the documentation at https://github.com/linvi/tweetinvi/wiki.

That said please note the following :
  • TwitterCredentials has been changed to Auth.
  • Search.GenerateSearchTweetParameter("query") has been changed to new TweetSearchParameters("query")
When I introduce breaking changes I think about it more than 1 time and weight the positive and negative effects for the developers. In these cases the changes bring more flexibility, simplicity and clarity.

Regards,
Linvi

Commented Unassigned: possible memory leak with streams [2664]

$
0
0
Hi,

I understand this could probably be / probably is caused by my misunderstanding. But I having out of memory exceptions when running multiple streams over multiple accounts.


In one instance, it was just 5 "followers streams" (watching for new followers to my accounts). It would take a day or so and the out of memory exception would hit.

Another case is trying to connect to a lot more streams (50+)


Are there any "known" gotchas that might explain this? Something I am not releasing handling correctly?


Cheers
Comments: ** Comment from web user: linvi **

I opened a new Issue on Github here : https://github.com/linvi/tweetinvi/issues/109

Commented Unassigned: User stream doesnt work but i get no error. [2662]

$
0
0
I have used the code below to create a user stream and recieve direct messages. It works in my sample project fine, but when i try to implement it in my existing project, after the stream starts it doesnt trigger the events when it starts or direct message. With brake points in the events it clearly doesnt trigger.

Tweetinvi.Core.Credentials.TwitterCredentials creds = new Tweetinvi.Core.Credentials.TwitterCredentials(consumerKey, consumerSecret, accessToken, accessTokenSecret);

```
Auth.SetUserCredentials(consumerKey, consumerSecret, accessToken, accessTokenSecret);

var stream = Tweetinvi.Auth.ExecuteOperationWithCredentials(creds, () =>
{
return Tweetinvi.Stream.CreateUserStream(creds);
});

stream.StreamStarted += (sender, args) =>
{
Trace.WriteLine("Stream Started");
};

stream.MessageReceived += (s, a) =>
{
Trace.WriteLine("You received the message : {0}", a.Message.Text);
};

stream.StartStream();
```

Has anyone had this before? Any ideas? How can i better debug this?

Regards
Carl
Comments: ** Comment from web user: linvi **

Hello there,

By default Tweetinvi does not throw any error. In order to be aware of the error please register to the StreamStopped event.

Please visit github for more information (https://github.com/linvi/tweetinvi/wiki/Streams#stop-and-error-handling).

``` c#
stream.StreamStopped += (sender, args) =>
{
var exceptionThatCausedTheStreamToStop = args.Exception;
var twitterDisconnectMessage = args.DisconnectMessage;
};
```

Linvi


Commented Unassigned: Current thread settings being dropped [2659]

$
0
0
```
Tweetinvi.TweetinviConfig.CURRENT_WEB_REQUEST_TIMEOUT = 60000;
Tweetinvi.TweetinviConfig.CURRENT_PROXY_URL = "127.0.0.1....";

var settings = new Tweetinvi.Core.TweetinviSettingsAccessor();
// confirmed is correct settings.CurrentThreadSettings.ProxyURL
```

This is all set, stepped through, is all working correctly.


Actions are run using:

```
TwitterCredentials.ExecuteOperationWithCredentials(cred, () =>
{
....
}

```

yet, when responding to a stream notification, the settings information is dropped!

After making a call to the API

This code runs:
class: HttpClientWebHelper
Method: public HttpResponseMessage GetResponseMessageFromWebRequest(WebRequest webRequest)

```
var requestTask = TaskEx.Run(() => GetResponseMessageFromWebRequestAsync(webRequest, _tweetinviSettingsAccessor.WebRequestTimeout));
```

Just before stepping in, the
```
tweetinviSettingsAccessor
```
is correct, my settings are in, but when I step in, the settings are null and are override

after the callback runs, I am back in the code, my current settings are there, then this line runs

```
var resultingTask = TaskEx.WhenAny(requestTask, TaskEx.Delay(_tweetinviSettingsAccessor.WebRequestTimeout)).Result;
```

again, just before, currentthreadsettigns correct, callback executes, settings gone - overidden




So from what I can tell, the async, callback nature of it all, is running things in different "threads" or whatever the terminology and ignoring how other parts of the program function, by having to assign the details to the executing thread, which will detect it later when required and use the parameters.



Any definite ideas on what is going on here? tbh I am a bit lost in it all - and probably is me not understanding things and doing it wrong. The whole paradigm of assigning variables to the executing thread is very different to how I normally do things (assign properties to the object and pass that to execute it), so I am probably trying to do things with the wrong mindset :-s
Comments: ** Comment from web user: linvi **

Created issue on github (https://github.com/linvi/tweetinvi/issues/110)

Edited Issue: Add support for user email. [2654]

$
0
0
It is now possible to get user email from twitter API. This however requires this URL query parameter to be added to the URL: "include_email=true".

Please push a fix that adds support for this.

P.S. If the following where added to the project, I would have been able to do this myself:

1. Mark the 'Resources' code file as public, instead of internal. This way, I can modify the query URLs.
2. Make available the raw json string received from the api in a property on each model. This way I would have been able to look up the extra fields not available on the concrete c# object.
Comments: ** Comment from web user: linvi **

https://github.com/linvi/tweetinvi/issues/81

Done

Closed Issue: Implement xAuth Authentication [2615]

$
0
0
https://dev.twitter.com/oauth/xauth

If Twitter gives access to xAuth, implement it.

Issue raised on Github : https://github.com/linvi/tweetinvi/issues/3
Comments: Not recommended by Twitter Team.

Commented Unassigned: Current thread settings being dropped [2659]

$
0
0
```
Tweetinvi.TweetinviConfig.CURRENT_WEB_REQUEST_TIMEOUT = 60000;
Tweetinvi.TweetinviConfig.CURRENT_PROXY_URL = "127.0.0.1....";

var settings = new Tweetinvi.Core.TweetinviSettingsAccessor();
// confirmed is correct settings.CurrentThreadSettings.ProxyURL
```

This is all set, stepped through, is all working correctly.


Actions are run using:

```
TwitterCredentials.ExecuteOperationWithCredentials(cred, () =>
{
....
}

```

yet, when responding to a stream notification, the settings information is dropped!

After making a call to the API

This code runs:
class: HttpClientWebHelper
Method: public HttpResponseMessage GetResponseMessageFromWebRequest(WebRequest webRequest)

```
var requestTask = TaskEx.Run(() => GetResponseMessageFromWebRequestAsync(webRequest, _tweetinviSettingsAccessor.WebRequestTimeout));
```

Just before stepping in, the
```
tweetinviSettingsAccessor
```
is correct, my settings are in, but when I step in, the settings are null and are override

after the callback runs, I am back in the code, my current settings are there, then this line runs

```
var resultingTask = TaskEx.WhenAny(requestTask, TaskEx.Delay(_tweetinviSettingsAccessor.WebRequestTimeout)).Result;
```

again, just before, currentthreadsettigns correct, callback executes, settings gone - overidden




So from what I can tell, the async, callback nature of it all, is running things in different "threads" or whatever the terminology and ignoring how other parts of the program function, by having to assign the details to the executing thread, which will detect it later when required and use the parameters.



Any definite ideas on what is going on here? tbh I am a bit lost in it all - and probably is me not understanding things and doing it wrong. The whole paradigm of assigning variables to the executing thread is very different to how I normally do things (assign properties to the object and pass that to execute it), so I am probably trying to do things with the wrong mindset :-s
Comments: ** Comment from web user: linvi **

Hello there,

Please note that the version you are working with is an old version.
This issue is fixed in the latest version of Tweetinvi so please use this new one!

Regards,
Linvi

Closed Issue: Verify Windows XP compatibility [2193]

$
0
0
Verify that Tweetinvi is compatible with Windows XP.

Edited Issue: Provide option to cleanup string query in TwitterAccessor [2363]

$
0
0
Give the ability to call : "https://api.twitter.com/1.1/statuses/show.json?id=20,210462857140252672" instead of
https://api.twitter.com/1.1/statuses/show.json?id=20%2C210462857140252672

Here the comma needs to be cleanup.

Edited Task: Chunked Upload [2634]

$
0
0
Add additional features like:
- A list of binaries chunk to upload and let Tweetinvi handle it
- A single binary and a value representing the number of chunks the binary needs to be divided into.

Closed Unassigned: possible memory leak with streams [2664]

$
0
0
Hi,

I understand this could probably be / probably is caused by my misunderstanding. But I having out of memory exceptions when running multiple streams over multiple accounts.


In one instance, it was just 5 "followers streams" (watching for new followers to my accounts). It would take a day or so and the out of memory exception would hit.

Another case is trying to connect to a lot more streams (50+)


Are there any "known" gotchas that might explain this? Something I am not releasing handling correctly?


Cheers

Edited Issue: Make sure Tweetinvi can be used from binaries [2527]

$
0
0
http://tweetinvi.codeplex.com/discussions/587744#post1366348

New Post: Commercial Use Of tweetinvi

$
0
0
Does Tweetinvi provide commercial services or can we use tweetinvi commercially?

New Post: Commercial Use Of tweetinvi

Created Unassigned: Streaming API issue (Might be multi-threading) [2666]

$
0
0
I just want to ask a question about a weird issue that I have been facing. I setup a filtered stream so I can be able to acquire hashtags, and then print out something whenever the hashtag has been posted on twitter. I use two hashtags as my trackers, one which is the actual hashtag, and another one which is a code. Example (#test, #te123). So every time I get those hashtags in a tweet, I reset the code part of the hashtag (#te123 becomes for example #te456), and then I would stop the old stream, create a new one, add the new trackers, and then start a new one in an async manner.

The issue is that it always triggers for the first time, but after that, it would sometimes trigger and sometimes not for some odd reason. Any advice on how to solve this issue ?

Thank you for the help.
Viewing all 4126 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>