twitter api in c# to update twitter status [Resolved]

Posted by RohiK under C# on 3/10/2011 | Points: 10 | Views : 3260 | Status : [Member] | Replies : 2
Hi all,

I am using TwitterApi to post twits on twitter.

but It's not working. It throws TwitterApiException

my code is

 try
{
a.AuthenticateWith(ConsumerKey, ConsumerSecretKey, TokenKey, TokenSecret);
string text = "hello twitter";
a.Update(text);

}
catch (TwitterAPIException ex)
{
Label1.Text = ex.Message;
}


whats going wrong?
or any other way to do this?

Happy Programming!!
Rohi



Responses

Posted by: RohiK on: 3/10/2011 [Member] Starter | Points: 25

Up
0
Down

Resolved
I tried this one at the very first. as this is first searched url in google.

please friends reply anything if you have tried it.

anyways I tried, n found where I am wrong.

when registering app I checked to read only check box mistakenly .
I need to checked Read and write.

Thanks


Happy Programming!!
Rohi

RohiK, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Prabhakar on: 3/10/2011 [Member] [MVP] Starter | Points: 25

Up
0
Down
Hi rohik

check this link .. and put ur tweets . .


http://www.dreamincode.net/code/snippet2556.htm

Best Regard's
Prabhakar

RohiK, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response