Manufacturer Finder
This class allows you to make GET requests to the hardware manufacturers resource in the OpenGate North API.
constructor
Constructor
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| ogapi | InternalOpenGateAPI |
❌ | Reference to the API object. |
findAll()
Download all manufacturers. This executes a GET HTTP method
Retorna
Tip
Tipo: Promise
findById(identifier)
Download a specific manufacturer by its id. This executes a GET HTTP method
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| identifier | string |
❌ | manufacturer identifier . |
Retorna
Tip
Tipo: Promise
findMediaById(manufacturerId, mediaIdentifier)
Download a specific manufacturer media by its ids. This executes a GET HTTP method
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| manufacturerId | string |
❌ | manufacturer identifier . |
| mediaIdentifier | string |
❌ | media identifier. |
Retorna
Tip
Tipo: Promise
findMedias(manufacturerId)
Download manufacturer medias. This executes a GET HTTP method
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| manufacturerId | string |
❌ | manufacturer identifier . |
Retorna
Tip
Tipo: Promise