@aigens/aigens-sdk-utils
v5.0.6
Published
Aigens SDK Utils
Readme
aigens-sdk-utils
Aigens SDK Utils
Install
npm install @aigens/aigens-sdk-utils
npx cap syncAPI
makeNetworkRequest(...)
makeNetworkRequest(options: NetworkOptions) => Promise<{ code: number; message: string; }>| Param | Type |
| ------------- | --------------------------------------------------------- |
| options | NetworkOptions |
Returns: Promise<{ code: number; message: string; }>
Interfaces
NetworkOptions
method: default is POST timeoutSeconds: default is 130 seconds
| Prop | Type |
| -------------------- | ------------------------------------------------- |
| url | string |
| method | 'GET' | 'POST' | 'PUT' | 'DELETE' |
| bodyJsonString | string |
| headers | { [key: string]: string; } |
| timeoutSeconds | number |
| isAdyen | boolean |
| isPrd | boolean |
