Files
zeekay 66d83ffb71 Rebrand: Zama → Lux throughout ios-demo
- Rename Helpers-Zama/ to Helpers-Lux/
- Rename ZamaUI/ to LuxUI/
- Update all Swift files, URLs, bundle IDs
- Update color assets and image assets
- Update server configs and API URLs
2026-01-27 10:34:44 -08:00

101 lines
2.7 KiB
Bash

#!/bin/bash
##################
## AD TARGETING #
##################
curl \
-X POST "https://api.lux.network/add_key" \
-F "task_name=ad_targeting" \
-F "key=@concreteCPUCompressionKey"
# {
# "uid": "906ead1d-1618-4f00-abbb-2850d6c0e3a9",
# }
curl \
-X POST "https://api.lux.network/start_task" \
-F "task_name=ad_targeting" \
-F "uid=906ead1d-1618-4f00-abbb-2850d6c0e3a9" \
-F "[email protected]"
# {
# "task_id": "51e63bae-c44c-4c53-82ea-0c7fb47400cf",
# }
curl \
-X GET "https://api.lux.network/get_task_status" \
-F "task_name=ad_targeting" \
-F "task_id=51e63bae-c44c-4c53-82ea-0c7fb47400cf" \
-F "uid=906ead1d-1618-4f00-abbb-2850d6c0e3a9"
# {
# "task_id": "51e63bae-c44c-4c53-82ea-0c7fb47400cf",
# "status": "success",
# "details": "Task successfully completed.",
# "worker": "not tracked",
# "uid":"906ead1d-1618-4f00-abbb-2850d6c0e3a9"
# }
curl \
-X GET "https://api.lux.network/get_task_result" \
-G \
--data-urlencode "task_name=ad_targeting" \
--data-urlencode "task_id=51e63bae-c44c-4c53-82ea-0c7fb47400cf" \
--data-urlencode "uid=906ead1d-1618-4f00-abbb-2850d6c0e3a9"
curl \
-X GET "https://api.lux.network/get_task_result?task_name=ad_targeting&task_id=51e63bae-c44c-4c53-82ea-0c7fb47400cf&uid=906ead1d-1618-4f00-abbb-2850d6c0e3a9"
################
## HEALTH #
################
# Stats using the received UID
# curl \
# -X POST https://api.lux.network/sleep_quality \
# -F "uid=$EXTRACTED_UID" \
# -F "input=@client_files/sleepList.fheencrypted" \
# -o client_files/sleep_quality_output.fheencrypted
# Start
#######
curl \
-X POST "https://api.lux.network/start_task" \
-F "task_name=weight_stats" \
-F "uid=5c8bb483-6e60-49bd-bb0c-09eb9cf40ca9" \
-F "[email protected]"
# {
# "task_id": "6a45a60b-99f9-4370-a7d3-89712cf8623a",
# }
# GET status
############
curl \
-X GET "https://api.lux.network/get_task_status" \
-F "task_name=weight_stats" \
-F "task_id=6a45a60b-99f9-4370-a7d3-89712cf8623a" \
-F "uid=5c8bb483-6e60-49bd-bb0c-09eb9cf40ca9"
# {
# "task_id": "6a45a60b-99f9-4370-a7d3-89712cf8623a",
# "status": "success",
# "details": "Task successfully completed.",
# "worker": "not tracked"
# }
# GET result
############
curl \
-X GET "https://api.lux.network/get_task_result?task_name=weight_stats&task_id=8b458da4-1307-42fb-850a-b32c12a1feca&uid=5c8bb483-6e60-49bd-bb0c-09eb9cf40ca9" \
-o output.json
curl \
-X GET "https://api.lux.network/get_task_result" \
-G \
--data-urlencode "task_name=weight_stats" \
--data-urlencode "task_id=6a45a60b-99f9-4370-a7d3-89712cf8623a" \
--data-urlencode "uid=5c8bb483-6e60-49bd-bb0c-09eb9cf40ca9"