- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Consuming Magento REST service using Zend_OAuth_Consumer
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Consuming Magento REST service using Zend_OAuth_Consumer
The below error comes up in Magento when the file maintenance.flag exist in your Magento root directory.
protected 'body' => string 'Service temporary unavailable' (length=29)
So if you see this file then remove it. After this you shouldn't be seen this error again.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Consuming Magento REST service using Zend_OAuth_Consumer
Thank you for your response Ravindra,
I don't have this file in my magento. This file is used for put magento in maintenance mode so I do not think the problem is due to that at all
Regards
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Consuming Magento REST service using Zend_OAuth_Consumer
Hi @agroverd
Check this out, problem seems similar to yours.
https://magento.stackexchange.com/questions/166895/how-to-add-product-using-rest-api
Beside this, make your that all required fields like
content
etc are defined as object, not array while posting product data to Magento. Let me know the result.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Consuming Magento REST service using Zend_OAuth_Consumer
Hi Ravindra,
I see the post that you comment me but the solution that the post say not is valid for me.
I want add the products use the zend oauth method and not the way the publication indicates that it is OAuth.
I have tried to add products into magento using SOAP and REST OAuth and the 2 ways function very well. But now I want use the zend OAuth method.
Best regards
I have a question for you. I test the code below with get request and function very well, but I need do a post request for create a product. I put the follow code but I receive an error message.
GET request
POST request
The error code is:
I config my admin user of magento who is conected with their code with All resources role and all acl attribute rules.
is the code that I use correct?
Thank you for your support