xxd122/weibo

postStatusesUpload failed

GoogleCodeExporter opened this issue · 1 comments

I want to use postStatusesUpload to upload a picture but failed. the error is

{"request":"/statuses/upload.json","error_code":"401","error":"4
40: 0109:consumer_key_refused!"}


I have test the other test cases. they can pass sucessfully. 
for examples
    // start login
    CPPUNIT_TEST (oauth2);
        // post a weibo without picture
        postStatusesUpdate

I can post a weibo without picture by using postStatusesUpdate. But why it will 
be failed when i post one with picture by the function 'postStatusesUpload' and 
the failure is "consumer_key_refused"? 
I will be appreciated if you can give me any hints? thanks. 



Original issue reported on code.google.com by stefan....@gmail.com on 23 Dec 2012 at 3:52

    // start login
    CPPUNIT_TEST (oauth2);

    //post a weibo
    CPPUNIT_TEST (postStatusesUpload);

this is my code. oauth2 is OK. but postStatusesUpload failed.

Original comment by stefan....@gmail.com on 23 Dec 2012 at 3:55