Magento的REST API的Oauth URL返回404 [英] Magento Rest API Oauth URL Returning 404

查看:290
本文介绍了Magento的REST API的Oauth URL返回404的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从Magento的维基在:

From the Magento wiki at:

<一个href=\"http://www.magentocommerce.com/api/rest/authentication/oauth_authentication.html#OAuthAuthentication-OAuthProcess\" rel=\"nofollow\">http://www.magentocommerce.com/api/rest/authentication/oauth_authentication.html#OAuthAuthentication-OAuthProcess

当得到一个API令牌您在得到一个未经授权的请求令牌开始:

When getting an API token you start off by getting an Unauthorized Request Token at:

www.mystore.com/oauth/initiate

www.mystore.com/oauth/initiate

不过,我的code不工作,当我浏览到上述网址在浏览器中,我得到一个404

However, my code does not work and when I browse to the above url in my browser I get a 404.

我追加店中店​​code到基本URL(如www.mystore.com/en/)我不知道这是否会改变任何事情。

I am appending shop store code to the base url (eg www.mystore.com/en/) I don't know if this alters anything.

推荐答案

Magento的Wiki有一个错字:

The Magento Wiki has a typo:

$adminAuthorizationUrl = 'http://yourhost/admin/oAuth_authorize';

应该是:

$adminAuthorizationUrl = 'http://yourhost/admin/oauth_authorize';

这篇关于Magento的REST API的Oauth URL返回404的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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