Open API and SDK
Added in version 2.6.4
DataFlux Func provides full Open API support, which can be invoked programmatically using the accompanying DataFlux Func SDK.
1. Enable Open API Documentation Page
In the "Experimental Features," you can enable the documentation page for Open API.
The DataFlux Func SDK includes signing functionality and is released as a single file. Users can directly place it in their projects for use.
2. Create Access Key
- Log in to your DataFlux Func
- In "Management / Experimental Features," enable Access Key management
- In "Management / Access Key," click "Create" to create an Access Key
3. Send Requests Using the SDK
The DataFlux Func SDK supports multiple programming languages. Download links are provided below:
Language | Download Link | Description |
---|---|---|
Python | dataflux_func_sdk.py | Single file, no dependencies required for basic usage. Upload functionality depends on the requests library. |
Node.js | dataflux_func_sdk.js | Single file, no dependencies required for basic usage. Upload functionality depends on the form-data library. |
Golang | dataflux_func_sdk.go | Single file, completely dependency-free. Demo: dataflux_func_sdk_demo.go |
Example of sending requests:
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 51 |
|
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 52 |
|
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 84 |
|