Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/magento/5.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
在Magento中,如何使用REST调用获取JSONP数据_Magento_Magento 1.4_Magento 1.7_Magento 1.5 - Fatal编程技术网

在Magento中,如何使用REST调用获取JSONP数据

在Magento中,如何使用REST调用获取JSONP数据,magento,magento-1.4,magento-1.7,magento-1.5,Magento,Magento 1.4,Magento 1.7,Magento 1.5,我是马根托人的新手。我已经安装了所有内容,并修改了customer和guest的其余角色和属性。现在,当我给出我的url时,我收到了数据http://192.168.1.101:8010/magento/api/rest/products 以XML格式 为了以JSONP格式接收这个消息,我读到我们必须包括类似头的头('Content-Type:application/javascript')。。但是我们必须在哪个文件中包含这个头文件,这些文件位于哪里???我不知道是否正确,但我认为我们必须在ma

我是马根托人的新手。我已经安装了所有内容,并修改了customer和guest的其余角色和属性。现在,当我给出我的url时,我收到了数据http://192.168.1.101:8010/magento/api/rest/products 以XML格式

为了以JSONP格式接收这个消息,我读到我们必须包括类似头的头('Content-Type:application/javascript')。。但是我们必须在哪个文件中包含这个头文件,这些文件位于哪里???我不知道是否正确,但我认为我们必须在magento的api中包含此标题。。那些在哪里


请帮帮我。。因为时间不多了。

请按以下内容类型添加标题:application/json for json。

嘿,我不知道要在哪个文件中添加此标题。。我只需运行url即可获得XML输出。但在中的哪个文件中必须添加此标题?请使用Firefox的REST客户端加载项在Magento中测试REST API,但使用加载项只能用于查看。。但现在我必须以json格式将数据发送到html页面。。你说我们必须包括内容类型的标题。。。我们必须在哪个文件中包含此标题???我需要与您聊天一段时间,以消除我对magento的疑虑。。。你能邀请我聊天吗?有magento的房间吗。。我看不见