Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/meteor/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
从meteor应用程序调用RESTAPI_Rest_Meteor - Fatal编程技术网

从meteor应用程序调用RESTAPI

从meteor应用程序调用RESTAPI,rest,meteor,Rest,Meteor,如何使用meteor的身份验证调用RESTAPI,如果您能提供一个示例,我已经将http包添加到meteor项目中。使用高级rest客户端chrome应用程序,我可以通过传递以下URL和2个标题来获取数据。此应用正在使用已登录的浏览器会话 URL: https://xxxxx:9443/ccm/oslc/contexts/_ZoC0QNS3EeGPlow7Bl9IAw/workitems headers: Accept", "application/json"

如何使用meteor的身份验证调用
RESTAPI
,如果您能提供一个示例,我已经将http包添加到meteor项目中。使用高级rest客户端chrome应用程序,我可以通过传递以下URL和2个标题来获取数据。此应用正在使用已登录的浏览器会话

URL: https://xxxxx:9443/ccm/oslc/contexts/_ZoC0QNS3EeGPlow7Bl9IAw/workitems
headers:    Accept", "application/json"
                OSLC-Core-Version", "2.0"

如何传递rest api服务的标题和用户名密码。

我在jazz论坛上发现有人使用XHR实现了此功能,下面是代码链接,如何将其映射到meteor包方法。任何想法都值得赞赏。我在jazz论坛上发现有人使用XHR实现了,下面是代码链接,如何将其映射到meteor包方法。任何想法都值得赞赏。