Take the 2-minute tour ×
Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. It's 100% free, no registration required.

I want to build a small bookmarklet which can take the selected text and send in to stackoverflow to create a new post containing the selected text.

Also get a unique id or something that helps to point back to question easily.

I am a new api user so not sure whether this is possible with existing API or not ?

EDIT: This created new Post is just sort of template, User can edit it, can add tags title etc before submit it to stackoverflow.

A good example will be select some code on JSFiddle and click the bookmarklet. Then the booklmarklet create a new post with the code already included in the post and also the link to fiddle. The user can edit the unfilled details like tag etc and submit question. This just smooth the post creation flow.

share|improve this question

1 Answer 1

No, the current API does not allow you to create new posts (questions or answers). If you scroll through the documentation looking for [auth required] you'll notice that only comments can be posted at this time.

Having said that, there are a couple of issues with your bookmarklet idea. What would the title of the post be (assuming the selected text would be the body of a question)? What tags would the post have? How would you check to see if you're posting a duplicate or not?

I think these are just a few of the issues that need to be addressed before posting questions is allowed through the API.

share|improve this answer
    
Thanks for the reply. About the problems –  Ankur Agarwal Nov 14 '12 at 0:46
    
I want to say there are plenty of bookmarklets out there for service like twitter, facebook, delicious, digg etc which take page url, selected text and other information and use that to create a new Post (FOR USER TO EDIT IT BEFORE SUBMITING) using a custome api which take all different fields as query string parameters. The usecase I am asking is a very particular one, but the data sources can be very different –  Ankur Agarwal Nov 14 '12 at 0:52
    
I have updated the question. –  Ankur Agarwal Nov 14 '12 at 1:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .