Meteor.jsでHTTPのrequestをする。Documentation – Meteor

Documentation – Meteor

HTTP.call("POST", "http://api.twitter.com/xyz",
{data: {some: "json", stuff: 1}},
function (error, result) {
if (!error) {
Session.set("twizzled", true);
}
});
<||
>|js|
Meteor.http.call("POST", "http://api.twitter.com/xyz", {data: {some: "json" stuff: 1}},
function (error, result) {
if (!error) {
Session.set("twizzled", true);
}
});
Meteor.http がHTTPを扱える様なので実際はこんな書き方になる。
下記もあります。
https://github.com/froatsnook/meteor-request:embed:cite
cliant で両方、試したんですが、
タイトルとURLをコピーしました