Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

postStatusesUpload failed #9

Open
GoogleCodeExporter opened this issue Feb 23, 2016 · 1 comment
Open

postStatusesUpload failed #9

GoogleCodeExporter opened this issue Feb 23, 2016 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

    // 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant