post in method in not working rest api in magento

时间:2014-01-24 07:41:20

标签: php rest magento-1.7

我使用此代码

$headers = array('Content-Type' => 'application/json', 'Accept' => '*/*');
$oauthClient->fetch($resourceUrl, $productData, OAUTH_HTTP_METHOD_POST, $headers);
$response =  json_decode($oauthClient->getLastResponseInfo());

但是

{"messages":{"error":[{"code":403,"message":"Access denied"}

有人请帮助我如何在REST api post方法的帮助下在magento网站上添加一个简单的产品。

0 个答案:

没有答案