You need to sign in to do that
Don't have an account?
Salesforce to Magento Integration
Hi All
I want to retrieve Magento Orders/Customers into salesforce. How can i make a call to magento through apex to retrieve,
1. I want to retrieve AccessToken and Token Secret (Also)
2. Retrieve customers/orders
presently my role is Admin in magento and, am created user and consumerkey and consumerSecret keys
Right now i am testing Authendication by using Oauth Play ground in test Sandbox. But it is displaying error like
<html>
<head><title>403 Forbidden</title></head>
<body bgcolor="white">
<center><h1>403 Forbidden</h1></center>
<hr><center>nginx/1.6.0</center>
</body>
</html>
if any one having code(In APEX), then please share with me
Thanks in Advance, I would appriciate for any kind of replay
Finally I came to know This error is throwing all because of nginx rejects cURL requests,
Actually While making request we need user-agent header. curl -H "User-Agent: Firefox/29.0" -H "Accept: */*"
request.setHeader('User-Agent','Firefox/29.0');
request.setHeader('Accept','*/*');
By Including Two Headers I got Success Response.....
Below link tells what is cURL
http://curl.haxx.se/docs/manpage.html
And I found this solution in below URL
http://stackoverflow.com/questions/24000223/why-nginx-rejects-curl-requests
All Answers
I believe, you company need to adopt some sofesticated integration tools available in market like MuleSoft or Informatica or Boomi. You can also do custom webservices implementation and call your server in DMZ from Salesforce but that will take lot of time. Choice is yours!
The way you are following is not in right direction.
Hope this helps! If yes, mark it as solution.
Finally I came to know This error is throwing all because of nginx rejects cURL requests,
Actually While making request we need user-agent header. curl -H "User-Agent: Firefox/29.0" -H "Accept: */*"
request.setHeader('User-Agent','Firefox/29.0');
request.setHeader('Accept','*/*');
By Including Two Headers I got Success Response.....
Below link tells what is cURL
http://curl.haxx.se/docs/manpage.html
And I found this solution in below URL
http://stackoverflow.com/questions/24000223/why-nginx-rejects-curl-requests