The problem could be the length of status or encoding of status is
invalid or status in not be included in the sign base string. I have a
workable integration now. Check the code here

https://github.com/Yincan/blackberry_twitter_oauth

On Apr 14, 5:58 am, Mickey <ng.mic...@gmail.com> wrote:
> Still receiving401during update status.
>
> There are 2 parts of my code that uses the HttpConnection where I was
> adding connection transport string.
> 1. To get the OAuth access token. The end point is "https://
> api.twitter.com/oauth/request_token".
> I removed the code to add transport string here. So my signature
> should not contain the transport string.
>
> 2. Doing an update, the URL thus becomes "http://api.twitter.com/1/
> statuses/update.json;interface=wifi"
> The result is still401.
>
> Any idea?
>
> Thanks
>
> On Apr 13, 4:04 pm, Naveen <knig...@gmail.com> wrote:
>
>
>
>
>
>
>
> > There are two possible issue you are having..
>
> > Most likely you simply need to append the network transport AFTER all
> > signatures have been generated. If you append it before, then those
> > additional characters are being included in the signature but the
> >BlackBerrydoes not actually send that part of the connection string
> > to anyone, it is only used internally.
>
> > Less likely but possible, the WIFI you are using is routing you
> > redirecting to you a landing page to login to the WIFI access.
>
> > --Naveen Ayyagari
> > SocialScope
>
> > On Apr 13, 12:41 pm, Mickey <ng.mic...@gmail.com> wrote:
>
> > > Hi
>
> > > Onblackberrywith httpConnection, I need to add network transport
> > > string such as ";interface=wifi" to the url.
>
> > > The problem is, once I added the network transport string, I get401
> > > unauthorized for status update and GET statuses/user_timeline.
>
> > > If I remove the transport string, then I can POST updates and GET
> > > statuses everything runs fine.
> > > So it seems the request I'm sending to twitter api is correct.
>
> > > Is there anything special with the transport string that might cause
> > > problems?

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk

Reply via email to