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

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

问题描述

来自 Magento 维基:

From the Magento wiki at:

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

但是,我的代码不起作用,当我在浏览器中浏览到上述网址时,我收到了 404.

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

我将商店代码附加到基本网址(例如 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天全站免登陆