Upgrade to Pro — share decks privately, control downloads, hide ads and more …

ニフティクラウドモバイルバックエンドとPHP

 ニフティクラウドモバイルバックエンドとPHP

KOYAMA Tetsuji

March 30, 2016
Tweet

More Decks by KOYAMA Tetsuji

Other Decks in Programming

Transcript

  1. εΫϦϓτͷ࣮ྫ ‣ྫ͑͹ҎԼͷίʔυΛμογϡϘʔυ͔ΒΞοϓ ϩʔυ module.exports = function(req, res) { if (req.query.name

    == undefined) { res.status(400).send('Bad Request'); return; } res.send(req.query.name); }
  2. var NCMB = require('ncmb'); var app_key = 'XXXXXXXX'; var client_key

    = 'XXXXXXXX'; var ncmb = new NCMB(app_key, client_key); ncmb.Script .query({name: 'hello_PHP'}) .exec('GET', 'script.js') .then(function(res) { console.log(res); }) .catch(function(err) { console.log(err); }); $ node call.js { body: 'hello_PHP' } ‣ϓϩάϥϜ͔Β࣮ߦ͢Δͱ͜͏ OPEF