curl - Meteor.http.post request for bitbucket -


I have to make problems with bittetack and I use curls for it:

  Curl --user {accountname}: {password} https://bitbucket.org/api/1.0/repositories/{accountname}/{repo_slug}/issues/ - Data "title = some title"  

But I can not understand how I send a request in Meteor.http.post, such as when I

  Meteor.http.post (https: // bitbucket.org) / Api / 1.0 / repositories / {accountname} / {repo_slug} / issues /, {auth: {accountname}: {password}, ​​data: "title = some title"}, function (error, result) {console. Log (on Nam);});  

I get an error

  error: unsuccessful [400]  

Please tell me in the right direction how can I write a curl in the meteor form.

Call:

  Meteor.http.post (https: //bitbucket.org/.../, {auth: {accountname}: {password}, ​​data: {title: "some title"}, function (error, result) {console.log (results);});  

I think you have set a wrong Setup Data field.


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -