2
我已將高級休息客戶端安裝到我的Chrome中。從我的magento,我可以從管理面板獲得消費者密鑰和密鑰。我試圖得到該鏈接http://term.ie/oauth/example/client.php令牌,但以下列方式返回。這裏沒有令牌密鑰..在Magento中如何獲取AccessToken和訪問祕密令牌
request url: ://192.168.1.101:8000/magento/admin/oauth/token ?oauth_version=1.0&oauth_nonce=XXXXXXXXX&oauth_timestamp=XXXXXXX&oauth_consumer_key=xxxxxxxxx&oauth_signature_method=HMAC-SHA1&oauth_signature=xxxxxxxxx%3D
OAuthRequest Object
(
[parameters:OAuthRequest:private] => Array
(
[oauth_version] => 1.0
[oauth_nonce] => XXXXXXXXXX
[oauth_timestamp] => XXXXXXX
[oauth_consumer_key] => XXXXXXXXXXXXXXXXXXXXXXXXXXX
[oauth_signature_method] => HMAC-SHA1
[oauth_signature] => XXXXXXXXXXXXXXXXXXXX=
)
[http_method:OAuthRequest:private] => GET
[http_url:OAuthRequest:private] => 192.168.1.101:8010/magento/admin/oauth/token
[base_string] => GET&%3A%2F%2F192.168.1.101%2Fmagento%2Fadmin%2Foauth%2Ftoken%20&oauth_consumer_key%XXXXXXXXXXXXXXXXXXXXXXX%26oauth_nonce%XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX%26oauth_signature_method%XXXXXXXXXX%26oauth_timestamp%XXXXXXXXX%26oauth_version%3D1.0
)
所以建議我我如何才能訪問令牌和訪問令牌的祕密......根據我,你已經創建了REST & OAUTH消費者所以我skiping它管理角色。
我認爲你已經完成了任務作爲指導,...請發佈答案,這將是幫助.. – chanz