Open API and SDK
Added in version 2.6.4
DataFlux Func provides comprehensive Open API support. You can use the accompanying DataFlux Func SDK to make calls programmatically.
1. Enable the Open API Documentation Page
You can enable the Open API documentation page in "Experimental Features".
The DataFlux Func SDK includes signature functionality and is released as a single file. Users can directly place it into their projects for use.
2. Create an Access Key
- Log in to your DataFlux Func
- Enable Access Key management in "Manage / Experimental Features"
- Click "Create" in "Manage / Access Key" to create an Access Key
3. Send Requests Using the SDK
The DataFlux Func SDK supports multiple programming languages. Download links are as follows:
| Language | Download Link | Description |
|---|---|---|
| Python | dataflux_func_sdk.py | Single file, no dependencies for basic use. Upload functionality depends on the requests library. |
| Node.js | dataflux_func_sdk.js | Single file, no dependencies for basic use. Upload functionality depends on the form-data library. |
| Golang | dataflux_func_sdk.go | Single file, completely dependency-free. Demo: dataflux_func_sdk_demo.go |
Examples of sending requests are as follows:
| Python | |
|---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | |
| JavaScript | |
|---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | |
| Go | |
|---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | |