A
A
antonza862014-02-10 16:20:36
PHP
antonza86, 2014-02-10 16:20:36

How to add new product to Magento via REST API?

Good afternoon,
I'm trying to add a new product through the REST API, following the example from the official site www.magentocommerce.com/api/rest/introduction.html.
The Admin user has been created, all Roles have been added to it, Admin with full permission (Read, Write ..)
It seems that I am doing everything right, when I run the PHP code it gives out:
Array ( [url] => 127.0.0.1/magento/api/rest/products [http_code] => 200 [download_content_length] => 37 [content_type] => text/html [size_download] => 37 [size_upload] => 225 )
But it doesn't add any product.
Maybe I'm doing something wrong, maybe someone met this problem.
Maybe it's in the PHP code or in the Magento configuration itself?
Tell me please.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
imdeveloper, 2016-08-31
@link_web

Use soap . I don't think you will have any problems with it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question