Go to the source code of this file.
◆ interchange_allproducts
#define interchange_allproducts |
( |
|
handler, |
|
|
|
callback |
|
) |
| interchange_catalog("All-Products", handler, callback) |
For fetching data about all active products.
- Parameters
-
handler | A pointer to the function when a custom handler is needed to arrange the data into the catalog. |
callback | A pointer to the function that needs to be called after the catalog is ready. |
◆ interchange_catalog()
For fetching data about products that belong a specific group.
- Parameters
-
prod_group | The name of the product group. |
handler | A pointer to the function when a custom handler is needed to arrange the data into the catalog. |
callback | A pointer to the function that needs to be called after the catalog is ready. |
◆ interchange_cleanup()
void interchange_cleanup |
( |
| ) |
|
◆ interchange_clear_product()
◆ interchange_free_catalog()
◆ interchange_free_response()
◆ interchange_init()
void interchange_init |
( |
const char * |
sampleurl, |
|
|
const char * |
image_dir, |
|
|
const char * |
cookie, |
|
|
const char * |
certificate |
|
) |
| |
A function that needs to be run first.
- Parameters
-
sampleurl | The value of the SAMPLEURL setting in products/variable.txt. |
image_dir | The value of the IMAGE_DIR setting in products/variable.txt. |
cookie | Path to the cookie file. |
certificate | Path to the CA certificate file. |
◆ interchange_page()
Generic function for fetching data using a relative path.
- Parameters
-
path | The path. |
parser | Function for parsing the formatted response. |
◆ interchange_product()
For fetching data about a specific product.
- Parameters
-
sku | The SKU of the product. |
handler | A pointer to the function when a custom handler is needed to arrange the data into the product. |
callback | A pointer to the function that needs to be called after the product is ready. |