Open API and SDK
Added in version 2.6.4
DataFlux Func provides comprehensive Open API support, allowing users to programmatically invoke it using the accompanying DataFlux Func SDK.
1. Enable Open API Documentation Page
In the "Experimental Features," you can enable the Open API documentation page.
The DataFlux Func SDK includes signature functionality and is released as a single file. Users can directly include it in their projects.
2. Create 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. Use SDK to Send Requests
The DataFlux Func SDK supports multiple programming languages. The download links are as follows:
Language | Download Link | Description |
---|---|---|
Python | dataflux_func_sdk.py | Single file, no dependencies for basic usage. Upload functionality depends on the requests library |
Node.js | dataflux_func_sdk.js | Single file, no dependencies 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 a request:
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 |
|