8

First, you want to request a valid OAuth token and secret. Do this by hitting the /oauth/initiate URL of your Magento store with a GET parameter for oauth_callback. We're going to use httpbin so that we can echo anything that is passed to our callback. Make sure you have "Auto add parameters" checked on the OAuth 1.0 settings for Postman. That will give you ...


3

I recommend to use SOAP UI for testing the Magento 1 SOAP API and Postman or Swagger for Magento 2 Rest Calls. With SOAP UI you can import the full WSDL Schema with Basic Example Requests. Download: https://www.soapui.org/downloads/soapui.html How to use Steps: Click on SOAP or File > New SOAP Project(Create new SOAP project) Fill in a Project Name ...


3

Try 1: $catalog = Mage::getModel('catalog/product') ->getCollection() ->addAttributeToSelect('*') ->addStoreFilter(Mage::app()->getStore()->getId()); Try 2: $backendModel = $catalog->getResource()->getAttribute('media_gallery')->getBackend(); and foreach loop foreach ($collection as $product) { $backendModel->...


2

This is a silly example with Magento 1.9.2.4 <?php ini_set('max_execution_time','1000'); set_time_limit(0); $client = new SoapClient("http://www.yourstore.com/index.php/api/?wsdl"); try { //Login $session = $client->login("username", "password"); //Request shipment number 100000001 $result = $client->call($session, '...


2

You can use the rest webservice: http://yoursite.com/index.php/rest/V1/orders On the body you just have to pass: { "entity": { "entity_id": your order id, "state": your state, "status": your status } } Don't forget to also include in the http header the following fields: Content-...


2

It requires a bit of coding to upload Magento images to Pinterest. As I found one thing on the stack that there are 3 way to upload an image with API on Pinterest. you can read more here https://stackoverflow.com/a/33027906/7472487 In that, there is one option that if an image is already on the web(internet) then with API you just need to pass image URL so ...


1

According to the Magento's official API reference, I don't think that the current core API can achieve your demand. The solution is to extend/create another endpoint based on the existing API. These are some useful tutorial: Dev Docs of Magento Inchoo


1

Did with Get method, here is the code $url = 'http://urlexample'; $headers = array( "Content-type: application/x-www-form-urlencoded", "Accept: application/x-www-form-urlencoded" ); $method = 'GET'; $connection = new Varien_Http_Adapter_Curl(); if ($method == "GET") { $zendMethod = Zend_Http_Client::GET; ...


1

I had the same issue and after a long debugging session, I found out that the error is caused by the extension MagentoHackathon_AdvancedAcl. I opened an issue and created a pull request, which fixes this issue. The problem is that they execute the following code: Mage::getSingleton('admin/session')->getUser()->getRole(); But in the case of a SOAP ...


1

That's the whole point of an API. You should be able to call it from anywhere else * Since you can use the M1 API from any other platform / software / kitchen sink you should be able to make those calls from a magento 2 platform. * some restrictions may apply


1

Try this params. It is working. { "entity": { "entity_id": 1, "state":"processing", "status": "processing" } } Check mapping in sales_order_status_state. Happy Coding.


1

Try following code: $pageSubContain = Mage::getModel('cms/page')->load($pageId); $pageMainContain = $pageSubContain->getContent(); /* @var $helper Mage_Cms_Helper_Data */ $helper = Mage::helper('cms'); $processor = $helper->getPageTemplateProcessor(); $html = $processor->filter($pageMainContain); $response = array( "status" => "1", ...


1

Change the code snippet to below $session = $client->login($user_name, $password); $filters = array( 'sku' => array('like'=>'zol%') ); $products = $client->call($session, 'product.list', array($filters)); For more information refer : https://devdocs.magento.com/guides/m1x/api/soap/catalog/catalogProduct/catalogProduct.html


1

Use the API method catalog_category.info. Something like this added in your code should give you the needed information. $categoryId = [YOUR CATEGORY_ID]; $result = $client->call($session, 'catalog_category.info', $categoryId); $image = $result['image'];


1

catalog_product_link.assign SOAP V1 API method helps you achieve it. Sample Code to associate products $client->call($sessionId, 'catalog_product_link.assign', array('configurable', $configurableProductSku, $associatedSimpleProductSku)); Go through this magento article to get a grip on it. Edited: The association between a child and configurable ...


1

If you are using a development site with an SSL that is not signed by a major CA, then when PHP goes to load external entities from your domain, your SSL certificate can cause this error. I just had to add my root CA certificate that signed my SSL to the trusted roots of my server and the error went away. For Ubuntu 16.04 I added the PEM version of my root ...


1

Place your code inside a try {} catch($e) {} block. So: try { $orderresult = $proxy->call($sessionId, 'sales_order.info', ''.$_POST["ordernumber"].''); } catch(\Exception $e) { echo $e->getMessage(); }


1

try this code : $product = Mage::getModel('catalog/product')->load(5);//product id here foreach ($product->getMediaGalleryImages() as $image) { echo $image->getUrl(); }


1

Magento Order API protects the order from being manipulated. You are able to Create your Own API, and this is the RECOMMENDED approach for security reasons. The disadvantage in this approach is that you need to create and maintain code on both sides (Magento and ERP) in order to get the system to work. But once this custom API is setup, it should be pretty ...


1

Here is the way to do that with SOAP V1 if you only have the order increment ID: /** @var array $orderInfo */ $orderInfo = $client->call($session, 'sales_order.info', $orderIncrementId); /** @var string $orderId */ $orderId = $orderInfo['order_id']; // Entity ID /** @var array $filters */ $filters = array( array('order_id' => array('eq' => $...


1

you can't access this resources directly since it is a protected with self-resources. You Can do this by making the resources to "anonymous" in webapi.xml so that you can view it's WSDL structure clearly.


1

You have to pass \Magento\Sales\Api\OrderRepositoryInterface in construct of your class. Then try this one, $order = $this->orderRepository->get($orderId); $orderIncrementId = $order->getIncrementId();


1

This will do the trick. I didn't pass in the store id but you can pass it in the same way that you were. $attrSetId = 4; $sku = 'standardapiv1_' . uniqid(); $client = new SoapClient($url, array('trace' => 1)); $sessionId = $client->login($username, $password); $productId = $client->call($sessionId, 'catalog_product.create', ...


Only top voted, non community-wiki answers of a minimum length are eligible