Asp.net web forms App

Oct 29, 2013 at 12:10 PM
Edited Oct 29, 2013 at 12:11 PM
Hi :

I want to use this Lib to update user status
  • i want to check if user oAuth my app .. if yes i want to push a status update .. else allow user to oAuth app then update status
  • I want to check if the status published or not
Thanks .. Best Wishes
Mohamed
Coordinator
Oct 29, 2013 at 2:58 PM
Hi there,

i want to check if user oAuth my app .. .. else allow user to oAuth app

Currently Tweetinvi is using the TokenCredentials class to store the credentials of both a User and an Application.

This TokenCredentials are stored within a Token that will be responsible to generate and perform the queries.

The TokenCreator class currently provide only 1 type of solution to enable a User to authorize an App to access to its account by generating a Token class from which you can access the TokenCredentials.

When you have the Token created you can store the TokenCredentials and use them at their next session.

Twitter provides an automatic redirect solution which is not implemented by Tweetinvi today but it is planned and will be available in future releases.

"if yes i want to push a status update" / "I want to check if the status published or not"

To push a status, you simply have to create a Tweet like this :
ITweet newTweet = new Tweet("myTweetMessage", token);
bool hasBeenSuccessfullyPublished = newTweet.Publish();
You can find all the examples you need in the Examplinvi project.
I hope this answers your questions.

Regards,
Linvi