https://github.com/customautosys/axios-cordova-adapter
An axios adapter using cordova-plugin-advanced-http
https://github.com/customautosys/axios-cordova-adapter
adapter advanced axios cordova http plugin
Last synced: 5 months ago
JSON representation
An axios adapter using cordova-plugin-advanced-http
- Host: GitHub
- URL: https://github.com/customautosys/axios-cordova-adapter
- Owner: customautosys
- License: other
- Created: 2023-04-04T13:14:34.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-05T12:05:11.000Z (about 2 years ago)
- Last Synced: 2025-08-09T01:57:11.087Z (12 months ago)
- Topics: adapter, advanced, axios, cordova, http, plugin
- Language: TypeScript
- Homepage: https://github.com/customautosys/axios-cordova-adapter
- Size: 31.3 KB
- Stars: 0
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# axios-cordova-adapter
An axios adapter using cordova-plugin-advanced-http
## Copyright Notice
© 2023 Wilson Foo Yu Kang. All rights reserved except as otherwise expressly provided in writing.
Licensed by Wilson Foo Yu Kang to the sole licensee Custom Automated Systems ® Pte Ltd on private and confidential terms which may be revoked with express written notice at any time at the sole and absolute discretion of Wilson Foo Yu Kang. By using and continuing to use this package, all parties agree that they are sub-licensing this package, including where this is pursuant to the LICENSE file containing herein, from Custom Automated Systems ® Pte Ltd and are not contracting directly with Wilson Foo Yu Kang, save that Wilson Foo Yu Kang shall be availed of all protections at law including all limitations of liability. Contact sales@customautosys.com for custom licensing terms.
Removal of this Copyright Notice is prohibited.
## Installation
```bash
cordova plugin add cordova-plugin-advanced-http
[ npm i -D axios | npm i -S axios ]
[ npm i -D axios-cordova-adapter | npm i -S axios-cordova-adapter ]
```
## Importing
```typescript
import axiosCordovaAdapter from 'axios-cordova-adapter';
```
## Functions
```typescript
axiosCordovaAdapter(config:InternalAxiosRequestConfig):AxiosPromise
```
The axios cordova adapter function to pass into the axios call.
## Usage
```typescript
import axiosCordovaAdapter from 'axios-cordova-adapter';
axios.create({
...
adapter:axiosCordovaAdapter
...
});
axios.request({
...
adapter:axiosCordovaAdapter
...
});
```