The udServerAPI module provides an interface to communicate with a Nuclideon udServer API directly in a simple fashion.
Queries provided API on the specified Nuclideon udServer.
!NOTE The application should call udServerAPI_ReleaseResult with
ppResultto destroy the data once it’s no longer needed.
| Parameter | Description |
|---|---|
pContext | The context to execute the query with. |
pAPIAddress | The API address to query, this is the part of the address after /api/. The rest of the address is constructed from the context provided. |
pJSON | The JSON text to POST to the API address. |
ppResult | A pointer to a location in which the result data is to be stored. |
Returns: A udError value based on the result of the API query.
Queries provided API on the specified Nuclideon udServer.
!NOTE The application should call udServerAPI_ReleaseResult with
ppResultto destroy the data once it’s no longer needed.
| Parameter | Description |
|---|---|
pContext | The context to execute the query with. |
pAPIAddress | The API address to query, this is the part of the address after /api/. The rest of the address is constructed from the context provided. |
pJSON | The JSON text to POST to the API address. |
ppResult | A pointer to a location in which the result data is to be stored. |
pProgressCallback | A function callback when there are progress updates |
pProgressUserData | A pointer that will be passed to the pProgressCallback |
Returns: A udError value based on the result of the API query.
Destroys the result that was allocated.
!NOTE The value of
ppResultwill be set toNULL.
| Parameter | Description |
|---|---|
ppResult | A pointer to a location in which the result data is stored. |