Get manufacturer ID - celdotro/marketplace GitHub Wiki

About

  • Retrieve manufacturer's ID

Class

celmarket\Products\ProductsList

Method

getManufacturerID

API

  • method: products
  • action: getManufacturerID

Parameters

  • name = manufacturer's name

Response

An array with the following elements

  • (array element) = manufacturer
    • manufacturers_id = manufacturer's ID
    • manufacturers_name = manufacturer's name

Example - PHP

https://github.com/celdotro/marketplace_examples/blob/master/Products/22.getManufacturerID.php

Example - JSON

{
  "request": {
    "name": "X"
  },
  
  "response": [
    {
      "manufacturers_id": 1,
      "manufacturers_name": "X"
    }
  ]
}
⚠️ **GitHub.com Fallback** ⚠️