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

Unable to post status using rest API #7

Closed
RandyStevens opened this issue Mar 4, 2018 · 2 comments
Closed

Unable to post status using rest API #7

RandyStevens opened this issue Mar 4, 2018 · 2 comments

Comments

@RandyStevens
Copy link

above the screenshot here is my APIkey and stuff like in the exmample Folder
screen shot 2018-03-04 at 1 26 59 am

screen shot 2018-03-04 at 1 42 27 am

@sh4869
Copy link
Owner

sh4869 commented Mar 4, 2018

You should pass a body parameter.

var a = twitter.request("POST", "statuses/update.json",body: {"status":"test"});
a.then((value){
    new File("test.json").writeAsString(value.body);
});

@RandyStevens
Copy link
Author

Excellent thank you!

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

No branches or pull requests

2 participants