Skip to content

Commit 6a470a3

Browse files
authored
fix(outbound): switch glucodroid.cloud endpoint to /api/v1/entries (#54)
Squashing via squash merge per repo conventions. Greptile review addressed in PR comments.
1 parent db39af4 commit 6a470a3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Common/src/main/java/tk/glucodata/OutboundApiSettings.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ object OutboundApiSettings {
129129
if (normalizedPreset() == PRESET_GLUCODROID_CLOUD) {
130130
val subdomain = url.trim()
131131
if (subdomain.isBlank()) return ""
132-
return "https://$subdomain.glucodroid.cloud/api/v1/ingest?token=${Uri.encode(token.trim())}"
132+
return "https://$subdomain.glucodroid.cloud/api/v1/entries?token=${Uri.encode(token.trim())}"
133133
}
134134
val trimmed = url.trim()
135135
val replacementToken = if (normalizedPreset() == PRESET_TELEGRAM_BOT) {

Common/src/main/res/values/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2046,7 +2046,7 @@ Pressing OK will generate a connection on this phone and display a QR code that
20462046
<string name="outbound_api_preset_glucodroid_cloud" translatable="false">glucodroid.cloud</string>
20472047
<string name="outbound_api_preset_glucodroid_cloud_desc" translatable="false">Stream readings to your glucodroid.cloud account.</string>
20482048
<string name="outbound_api_glucodroid_subdomain" translatable="false">Subdomain</string>
2049-
<string name="outbound_api_glucodroid_ingest_token" translatable="false">Ingest token</string>
2049+
<string name="outbound_api_glucodroid_ingest_token" translatable="false">API secret</string>
20502050
<string name="outbound_api_preset_custom_json_desc">POST normalized glucose JSON to any endpoint.</string>
20512051
<string name="outbound_api_preset_telegram_desc">Send text with the Telegram Bot API. The URL can point to a relay.</string>
20522052
<string name="outbound_api_preset_gluco_watch_vk_desc">Send compact GV text through VK community messages.</string>

0 commit comments

Comments
 (0)