Constructor
new zClientService()
- Copyright:
- Ivan Antunes 2021
- Source:
Classes
Members
statusCodeSuccess
Array with success status codes.
- Copyright:
- Ivan Antunes 2021
- Source:
tService
Stores instance zTranslateService.
- Copyright:
- Ivan Antunes 2021
- Source:
Methods
(static) destroyInstance()
Function used to destroy instance of zClientService.
- Copyright:
- Ivan Antunes 2021
- Source:
(static) getInstance()
Function used to get instance of zClientService
- Copyright:
- Ivan Antunes 2021
- Source:
Returns:
zClientService
request(url, type, obj, customHeader)
Function Client Resquest.
Parameters:
Name | Type | Description |
---|---|---|
url |
string | Url Request |
type |
'GET' | 'POST' | Type Request. |
obj |
any | Object Values |
customHeader |
any | Object Custom Header Example { TOKEN: '1234', NAME: 'zModule' } |
- Copyright:
- Ivan Antunes 2021
- Source: