1# Usage of Third- and Fourth-Party Libraries 2 3## Which third-party libraries can be used to implement bridge between ArkTS and C/C++ code during native development? (API version 10) 4 5**Solution** 6 7The Alpha Kernel Interacting (AKI) framework can be used. 8 9**References** 10 11[AKI Project Introduction](https://gitee.com/openharmony-sig/aki) 12 13 14## How do I obtain available third-party libraries? (API version 9) 15 16The three-party and four-party libraries that can be obtained through ohpm are summarized in the [OpenHarmony-TPC/tpc_resource repository](https://gitee.com/openharmony-tpc/tpc_resource). You can access this repository, and find the desired component based on the directory index. 17 18## Which third-party libraries are related to network requests? 19 20Applicable to: OpenHarmony 3.1 Beta5 (API version 9) 21 22The following third-party libraries are related to network requests: [Axios](https://gitee.com/openharmony-sig/axios), httpclient, and okdownload. For details, see the [OpenHarmony-TPC/tpc_resource repository](https://gitee.com/openharmony-tpc/tpc_resource). 23 24## How do I use ohpm to import third- and fourth-party libraries? (API version 9) 25 26**Solution** 27 28- Method 1: 29 1. Open the **Terminal** window and run the following command to go to the **entry** directory: 30 31 ``` 32 cd entry 33 ``` 34 35 2. Run the following command to install a third-party library, for example, **dayjs**: 36 37 ``` 38 ohpm install dayjs 39 ``` 40 41 3. Add the following statement in the .js file to import the third-party library: 42 43 ``` 44 import dayjs from 'dayjs'; 45 ``` 46 47 48- Method 2: 49 1. Enter the **entry** directory of the project and open the **oh-package.json5** file. 50 2. Write the third-party library to be installed (for example, **dayjs**) in the **oh-package.json5** file. 51 52 ``` 53 { 54 "dependencies": { 55 "dayjs": "^1.10.4", 56 } 57 } 58 ``` 59 60 3. Open the **Terminal** window and run the following command to go to the **entry** directory: 61 62 ``` 63 cd entry 64 ``` 65 66 4. Run the following command to install the third-party library: 67 68 ``` 69 ohpm install 70 ``` 71 72 5. Add the following statement in the .js file to import the third-party library: 73 74 ``` 75 import dayjs from 'dayjs'; 76 ``` 77