'use strict';
module.exports = function (City) {
City.GetCurrentPopulation = function (req) {
var population;
City.app.models.Pupulation.find({where{id:req.id}}, //This line //gives me an
我想從我的環迴應用程序中的第三方REST服務中獲取數據。爲了從服務中獲取數據,我需要首先使用登錄名和密碼進行身份驗證。我可以使用curl測試服務: curl -b cookies -c cookies -X POST -d '{"auth": {"username":"MyUser","password":"Secret"}}' 'http://api.awesome.service.com/'