I have a web page application working fine. In the app several new bits of data are created as a matter of course during the day. Some of those bits of data are of interest to the followers of my Twitter account.
I want to be able to do the following:
(1) Programmatically identify the occurrence of an event or a change in a database that meets my criteria for being tweeted to my Twitter account (this I know how to do)
(2) Have WebMatrix TWEET a custom tweet to my twitter account (this I do NOT know how to do)
I have tried to find a simple, understandible approach via Google search and have not found anything that I can understand and, thus, implement. There is a lot of stuff that is way down in the deep end of the pool concerning sending tweets programatically;
the only stuff in the kiddie pool (where I swim) has only to do with searching for status and displaying tweet lists.
Is there something as simple as the Twitter Helper stuff I have so far found (the stuif in the kiddie pool) that lets me make my app programmatically tweet to a Twitter account (over which I have full control)?
That is not a solution. It does not appear to have any mechanism that allows one to programmatically craft and send a tweet. Very good helper for reading tweets and for putting twitter gadgets on your web page.
However, as far as I can see, it does not address the problem that I raised:
How can I have my cshtml page (1) Craft the text of a tweet and then (2) send that tweet to a twitter account?
In my initial request I specified "simple". I was looking for something along the Mike Brind, "handholding" style of assistance.
The links provided may be simple to you, but I cannot see through the forest to the simle little tree I want: How do I let my WebMatrix page send a tweet to a Twitter account, where the WebPage figures out what the tweet text is and the Tweet ALWAYS goes
to the same Twitter account.
Apparently, this is something that is beyond the scope of everything that I have read and tried to understand (the operative word for this newbie is obviously "understand").
I appreciate the assistance, but at this point, I just give up and put it into the "rocket science" category.
fill everything , click create twitter application
from what i can remember it will create read only access , so click on settings and change it to "read and write"
save changes
you should see OAuth settings and access token (you may have to click something to create one) - make sure access token is read/write if not click big button "recreate my access token"
rrrsr7205
Participant
1304 Points
313 Posts
Need to Tweet to My Twitter Account Programmatically from my WebMatrix Application
Mar 31, 2012 07:13 PM|LINK
I have a web page application working fine. In the app several new bits of data are created as a matter of course during the day. Some of those bits of data are of interest to the followers of my Twitter account.
I want to be able to do the following:
(1) Programmatically identify the occurrence of an event or a change in a database that meets my criteria for being tweeted to my Twitter account (this I know how to do)
(2) Have WebMatrix TWEET a custom tweet to my twitter account (this I do NOT know how to do)
I have tried to find a simple, understandible approach via Google search and have not found anything that I can understand and, thus, implement. There is a lot of stuff that is way down in the deep end of the pool concerning sending tweets programatically; the only stuff in the kiddie pool (where I swim) has only to do with searching for status and displaying tweet lists.
Is there something as simple as the Twitter Helper stuff I have so far found (the stuif in the kiddie pool) that lets me make my app programmatically tweet to a Twitter account (over which I have full control)?
SonicMan
Participant
1472 Points
228 Posts
Re: Need to Tweet to My Twitter Account Programmatically from my WebMatrix Application
Apr 02, 2012 04:36 AM|LINK
HI
You can try this:
http://twitterhelper.codeplex.com/
It may helpful.
rrrsr7205
Participant
1304 Points
313 Posts
Re: Need to Tweet to My Twitter Account Programmatically from my WebMatrix Application
Apr 02, 2012 02:54 PM|LINK
That is not a solution. It does not appear to have any mechanism that allows one to programmatically craft and send a tweet. Very good helper for reading tweets and for putting twitter gadgets on your web page.
However, as far as I can see, it does not address the problem that I raised:
How can I have my cshtml page (1) Craft the text of a tweet and then (2) send that tweet to a twitter account?
rrrsr7205
Participant
1304 Points
313 Posts
Re: Need to Tweet to My Twitter Account Programmatically from my WebMatrix Application
Apr 03, 2012 04:46 PM|LINK
BUMP!!
rrrsr7205
Participant
1304 Points
313 Posts
Re: Need to Tweet to My Twitter Account Programmatically from my WebMatrix Application
Apr 05, 2012 07:07 PM|LINK
Still unanswered
RE-BUMP!
TOMCIO
Contributor
3638 Points
833 Posts
Re: Need to Tweet to My Twitter Account Programmatically from my WebMatrix Application
Apr 05, 2012 09:06 PM|LINK
go to https://dev.twitter.com and you will find everything you need there
or try something like http://www.twitterizer.net/
Web: Chicago Website Design
r@zorC - Open Source ASP.net CMS for WebMatrix
rrrsr7205
Participant
1304 Points
313 Posts
Re: Need to Tweet to My Twitter Account Programmatically from my WebMatrix Application
Apr 05, 2012 10:13 PM|LINK
Thanks, anyway.
In my initial request I specified "simple". I was looking for something along the Mike Brind, "handholding" style of assistance.
The links provided may be simple to you, but I cannot see through the forest to the simle little tree I want: How do I let my WebMatrix page send a tweet to a Twitter account, where the WebPage figures out what the tweet text is and the Tweet ALWAYS goes to the same Twitter account.
Apparently, this is something that is beyond the scope of everything that I have read and tried to understand (the operative word for this newbie is obviously "understand").
I appreciate the assistance, but at this point, I just give up and put it into the "rocket science" category.
TOMCIO
Contributor
3638 Points
833 Posts
Re: Need to Tweet to My Twitter Account Programmatically from my WebMatrix Application
Apr 06, 2012 01:03 AM|LINK
The link i sent you there is a sample code there...
OK step by step:
go to https://dev.twitter.com , login and click "create an application"
fill everything , click create twitter application
from what i can remember it will create read only access , so click on settings and change it to "read and write"
save changes
you should see OAuth settings and access token (you may have to click something to create one) - make sure access token is read/write if not click big button "recreate my access token"
NOW go to http://www.twitterizer.net/downloads/ and under Binaries click download
unzpi the files and under ClientProfile copy everything to bin folder in your website
in yuor page use this to post to twitter
OAuthTokens tokens = new OAuthTokens(); tokens.AccessToken = "XXX"; tokens.AccessTokenSecret = "XXX"; tokens.ConsumerKey = "XXX"; tokens.ConsumerSecret = "XXX"; TwitterResponse<TwitterStatus> tweetResponse = TwitterStatus.Update(tokens, "Hello, #Twitterizer"); if (tweetResponse.Result == RequestResult.Success) { // Tweet posted successfully! } else { // Something bad happened }HOPE THAT NOW IT WILL HELP :)
Web: Chicago Website Design
r@zorC - Open Source ASP.net CMS for WebMatrix
rrrsr7205
Participant
1304 Points
313 Posts
Re: Need to Tweet to My Twitter Account Programmatically from my WebMatrix Application
Apr 06, 2012 12:09 PM|LINK
Thanks - that was what I was looking for