[twitter-dev] Re: Problem with in reply to status id

2009-08-07 Thread digi

Thanks Sam...

Your post did help me ...

i was sending it to wrong id (user) and status id. I dont know why
dint I checked that earlier.

Now its fine.

other thing which I am working on Setting the source. I figure out
that we have to register our application now before it can appear as
source. Do we also have to use oauth to update status with the correct
source.

Although my app name is OpenTweet it always posts as web.

is oauth necessary ?

Thanks for all the help i Got

:)

On Aug 7, 4:24 am, Sam Street  wrote:
> Oh yeah. This just worked for me through web.
>
> My mistake!
>
> On Aug 7, 7:59 am, Abraham Williams <4bra...@gmail.com> wrote:
>
> > 2009/8/6 Sam Street 
>
> > > 2. replying to a status id that you posted yourself from the same
> > > account
>
> > This is actually incorrect. I've posted replies to myself from the web
> > interface.
>
> > Abraham
>
> > --
> > Abraham Williams | Community Evangelist |http://web608.org
> > Hacker |http://abrah.am|http://twitter.com/abraham
> > Project |http://fireeagle.labs.poseurtech.com
> > This email is: [ ] blogable [x] ask first [ ] private.
> > Sent from Wasilla, Alaska, United States


[twitter-dev] Re: Problem with in reply to status id

2009-08-07 Thread Sam Street

Oh yeah. This just worked for me through web.

My mistake!

On Aug 7, 7:59 am, Abraham Williams <4bra...@gmail.com> wrote:
> 2009/8/6 Sam Street 
>
> > 2. replying to a status id that you posted yourself from the same
> > account
>
> This is actually incorrect. I've posted replies to myself from the web
> interface.
>
> Abraham
>
> --
> Abraham Williams | Community Evangelist |http://web608.org
> Hacker |http://abrah.am|http://twitter.com/abraham
> Project |http://fireeagle.labs.poseurtech.com
> This email is: [ ] blogable [x] ask first [ ] private.
> Sent from Wasilla, Alaska, United States


[twitter-dev] Re: Problem with in reply to status id

2009-08-06 Thread Abraham Williams
2009/8/6 Sam Street 

> 2. replying to a status id that you posted yourself from the same
> account
>

This is actually incorrect. I've posted replies to myself from the web
interface.

Abraham

-- 
Abraham Williams | Community Evangelist | http://web608.org
Hacker | http://abrah.am | http://twitter.com/abraham
Project | http://fireeagle.labs.poseurtech.com
This email is: [ ] blogable [x] ask first [ ] private.
Sent from Wasilla, Alaska, United States


[twitter-dev] Re: Problem with in reply to status id

2009-08-06 Thread Sam Street

The message will not include 'in reply to X' if you are
1. replying to an invalid status id
2. replying to a status id that you posted yourself from the same
account

On Aug 6, 9:50 pm, Duane Roelands  wrote:
> Difficult to spot the error without knowing the values of "message"
> and "in inreply".
>
> Are you sure these values are correctly populated when this code
> executes?
>
> On Aug 6, 4:25 pm, digi  wrote:
>
> > I hate to bump this... but I need help... anybody
>
> > On Aug 6, 9:39 am, digi  wrote:
>
> > > hello there,
>
> > > I have been trying to fix this for so long but It is not working.
> > > I am developing a wndows mobile application for twitter in C#  am
> > > trying to reply to a status id. The message gets posted but it is not
> > > posted as a reply but just an update message. I dont know what I am
> > > missing... Please help. I am pasting my code too
> > > //Code
>
> > > postString = "source=MyApp&status=" + Uri.EscapeUriString(message) +
> > > "&in_reply_to_status_id=" + Uri.EscapeUriString(inreply);
>
> > >             HttpWebRequest webRequest = (HttpWebRequest)
> > > WebRequest.Create(sendTweetUrl);
> > >             NetworkCredential credentials = new NetworkCredential
> > > (Username, Password);
> > >             webRequest.Credentials = credentials;
>
> > >             ASCIIEncoding encoding = new ASCIIEncoding();
> > >             byte[] postData = encoding.GetBytes(postString);
>
> > >             webRequest.Method = "POST";
> > >             webRequest.Timeout = 2;
> > >             webRequest.ContentLength = postData.Length;
> > >             webRequest.AllowWriteStreamBuffering = true;
> > >             webRequest.ProtocolVersion = HttpVersion.Version11;
> > >             webRequest.ProtocolVersion = HttpVersion.Version10;
> > >       try
> > >             {
> > >                 using (Stream outStream = webRequest.GetRequestStream
> > > ())
> > >                 {
> > >                     outStream.Write(postData, 0, postData.Length);
> > >                     outStream.Flush();
> > >                 }
> > >             }
> > >             catch (Exception ex)
> > >             {
> > >                   throw new customException("Connection
> > > unsuccessful.", ex);
> > >             }
> > >          try
> > >             {
> > >                 using (HttpWebResponse response = (HttpWebResponse)
> > > webRequest.GetResponse())
> > >                 {
> > >                     using (StreamReader reader = new StreamReader
> > > (response.GetResponseStream()))
> > >                     {
> > >                         reader.ReadToEnd();
> > >                     }
> > >                 }
> > >             }
> > >             catch (WebException ex)
> > >             {throw new customException("Update unsuccessful.", ex);}
>
> > > Let me know if there is anything I am missing.
> > > in btw I am also including the @ in the reply to the status
> > > id.
>
> > > Is there anything else?


[twitter-dev] Re: Problem with in reply to status id

2009-08-06 Thread Duane Roelands

Difficult to spot the error without knowing the values of "message"
and "in inreply".

Are you sure these values are correctly populated when this code
executes?

On Aug 6, 4:25 pm, digi  wrote:
> I hate to bump this... but I need help... anybody
>
> On Aug 6, 9:39 am, digi  wrote:
>
>
>
> > hello there,
>
> > I have been trying to fix this for so long but It is not working.
> > I am developing a wndows mobile application for twitter in C#  am
> > trying to reply to a status id. The message gets posted but it is not
> > posted as a reply but just an update message. I dont know what I am
> > missing... Please help. I am pasting my code too
> > //Code
>
> > postString = "source=MyApp&status=" + Uri.EscapeUriString(message) +
> > "&in_reply_to_status_id=" + Uri.EscapeUriString(inreply);
>
> >             HttpWebRequest webRequest = (HttpWebRequest)
> > WebRequest.Create(sendTweetUrl);
> >             NetworkCredential credentials = new NetworkCredential
> > (Username, Password);
> >             webRequest.Credentials = credentials;
>
> >             ASCIIEncoding encoding = new ASCIIEncoding();
> >             byte[] postData = encoding.GetBytes(postString);
>
> >             webRequest.Method = "POST";
> >             webRequest.Timeout = 2;
> >             webRequest.ContentLength = postData.Length;
> >             webRequest.AllowWriteStreamBuffering = true;
> >             webRequest.ProtocolVersion = HttpVersion.Version11;
> >             webRequest.ProtocolVersion = HttpVersion.Version10;
> >       try
> >             {
> >                 using (Stream outStream = webRequest.GetRequestStream
> > ())
> >                 {
> >                     outStream.Write(postData, 0, postData.Length);
> >                     outStream.Flush();
> >                 }
> >             }
> >             catch (Exception ex)
> >             {
> >                   throw new customException("Connection
> > unsuccessful.", ex);
> >             }
> >          try
> >             {
> >                 using (HttpWebResponse response = (HttpWebResponse)
> > webRequest.GetResponse())
> >                 {
> >                     using (StreamReader reader = new StreamReader
> > (response.GetResponseStream()))
> >                     {
> >                         reader.ReadToEnd();
> >                     }
> >                 }
> >             }
> >             catch (WebException ex)
> >             {throw new customException("Update unsuccessful.", ex);}
>
> > Let me know if there is anything I am missing.
> > in btw I am also including the @ in the reply to the status
> > id.
>
> > Is there anything else?


[twitter-dev] Re: Problem with in reply to status id

2009-08-06 Thread digi

I hate to bump this... but I need help... anybody

On Aug 6, 9:39 am, digi  wrote:
> hello there,
>
> I have been trying to fix this for so long but It is not working.
> I am developing a wndows mobile application for twitter in C#  am
> trying to reply to a status id. The message gets posted but it is not
> posted as a reply but just an update message. I dont know what I am
> missing... Please help. I am pasting my code too
> //Code
>
> postString = "source=MyApp&status=" + Uri.EscapeUriString(message) +
> "&in_reply_to_status_id=" + Uri.EscapeUriString(inreply);
>
>             HttpWebRequest webRequest = (HttpWebRequest)
> WebRequest.Create(sendTweetUrl);
>             NetworkCredential credentials = new NetworkCredential
> (Username, Password);
>             webRequest.Credentials = credentials;
>
>             ASCIIEncoding encoding = new ASCIIEncoding();
>             byte[] postData = encoding.GetBytes(postString);
>
>             webRequest.Method = "POST";
>             webRequest.Timeout = 2;
>             webRequest.ContentLength = postData.Length;
>             webRequest.AllowWriteStreamBuffering = true;
>             webRequest.ProtocolVersion = HttpVersion.Version11;
>             webRequest.ProtocolVersion = HttpVersion.Version10;
>       try
>             {
>                 using (Stream outStream = webRequest.GetRequestStream
> ())
>                 {
>                     outStream.Write(postData, 0, postData.Length);
>                     outStream.Flush();
>                 }
>             }
>             catch (Exception ex)
>             {
>                   throw new customException("Connection
> unsuccessful.", ex);
>             }
>          try
>             {
>                 using (HttpWebResponse response = (HttpWebResponse)
> webRequest.GetResponse())
>                 {
>                     using (StreamReader reader = new StreamReader
> (response.GetResponseStream()))
>                     {
>                         reader.ReadToEnd();
>                     }
>                 }
>             }
>             catch (WebException ex)
>             {throw new customException("Update unsuccessful.", ex);}
>
> Let me know if there is anything I am missing.
> in btw I am also including the @ in the reply to the status
> id.
>
> Is there anything else?