getSingleResource()
The ZohoSalesIQ.KnowledgeBase.getSingleResource API allows getting details of a resource.
Parameters:
- type * - Type of the resource
- id * - ID of the resource
- callback * - The callback to get the resources details.
Error Codes:
Code | Message |
---|---|
500 | Mobilisten SDK not initialized |
600 | No network connection |
605 | Mobilisten SDK is disabled |
Syntax
CopiedZohoSalesIQ.KnowledgeBase.getSingleResource(
type: string,
id: string,
callback: (error: CallbackError, resource: object) => void
)
Example
CopiedZohoSalesIQ.KnowledgeBase.getSingleResource(ZohoSalesIQ.Resource.ARTICLES, 'id',(error, resource) => {
});