54chen / weibo-sdk

Automatically exported from code.google.com/p/weibo-sdk
0 stars 0 forks source link

postStatusesUpload failed #9

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
    // 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