correct validation url

This commit is contained in:
Matthew Frost 2023-12-27 21:55:59 +01:00
parent bc4880d59c
commit 0e9c3dcd74

View file

@ -250,13 +250,11 @@ void handleData1Interrupt() {
Serial.println("Sending Request to Tinance2 for card: " + fullCardID); Serial.println("Sending Request to Tinance2 for card: " + fullCardID);
#endif #endif
// Set the endpoint URL
String url = tinance2_url;
// Create the JSON payload // Create the JSON payload
String payload = "{\"full_card_id\":\"" + String(fullCardID) + "\"}"; String payload = "{\"full_card_id\":\"" + String(fullCardID) + "\"}";
// Send the HTTP request and get the response // Send the HTTP request and get the response
Tinance2HttpClient httpClient; Tinance2HttpClient httpClient;
std::pair<String, int> responsePair = httpClient.sendHttpRequest(tinance2_url_readerinfo, "GET", ""); std::pair<String, int> responsePair = httpClient.sendHttpRequest(tinance2_url_validatecard, "GET", "");
String response = responsePair.first; String response = responsePair.first;
int httpResponseCode = responsePair.second; int httpResponseCode = responsePair.second;