无法在OS X上获取Magento Rest Client的OAuth令牌 [英] Not able to get OAuth token for Magento Rest Client on OS X

查看:40
本文介绍了无法在OS X上获取Magento Rest Client的OAuth令牌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Magento 1.9.1.0版,并尝试通过OAuth集成使用Magento Rest API.我有消费者密钥和消费者秘密.现在想获取用于Rest API的OAuth令牌.我遵循了 http://www.magentocommerce.com/api/rest/authentication/oauth_authentication.html

I am using Magento version 1.9.1.0 and trying to use Magento Rest APIs using OAuth Integration. I have consumer key and consumer secret. Now want to get OAuth token for Rest APIs usage. I have followed http://www.magentocommerce.com/api/rest/authentication/oauth_authentication.html

在此,我们需要oauth_signature和时间戳,这是在管理面板上创建使用者时无法获得的.现在我们如何只获得消费者密钥和消费者秘密的OAuth令牌?

In this , we needed oauth_signature and timestamp which we doesn't get when we create consumer on admin panel . Now how can we get OAuth token with only consumer key and consumer secret ?

推荐答案

请检查.htaccess文件是否已重写

please check that .htaccess file rewrite

RewriteRule ^api/rest api.php?type=rest [QSA,L]

生效.

检查您使用的是Apache(不是nginx或其他不支持.htaccess的Web服务器)

Check you use Apache (not nginx or other Webserver that doesn't support .htaccess)

这篇关于无法在OS X上获取Magento Rest Client的OAuth令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆