401 Unauthorizen while verifying credentials



I am developing a Blackberry application which uses TwitterAPI ME (http://twitterapime.com) for authentication.
It works perfectly but I need to update statuses with media and, considering the fact that this api doesn’t support image uploading,
I decided to use token I’m receiving after I authenticate with this api to form my own request to upload pictures.
I have implemented the signing part and it works (at least it generated the same signature as it did here: https://dev.twitter.com/docs/auth/oauth if I put all data (consumer secret and key etc) from the example).
Unfortunately, I’m having troubles with verifying credentials:

In this example I’m trying to post a simple status “setting up my twitter”.
I’m generating signature, using this basestring:


Then the header:

OAuth oauth_nonce="13190400491111",
 oauth_signature="5qr2vaKuJ%2BiR3K2pOU4plmsPqVU%3D", oauth_version="1.0"

Then I’m trying to verify my credentials using this GET request:


And I’m getting 401 response. I can’t find the mistake in my code, can you point me in the right direction? Why won’t it authenticate?
Thanks in advance.


The signature needs to be generated for every request you make. The signature base string you’ve shown is for a POST request to /statuses/update.json - this will certainly not work for a GET to /account/verify_credentials.json.