Dear All,
I am trying to use webhook and I am not getting any response from the server in json, while the respons through a browser call is directly availble
What am I doing wrong. I tried the url from the doc page and that worked, but not with the 3rd party call I need.
The call is https://ttapp.nl/sbapi?getmatch&date=20151106&clubid=1358&matchnr=20108
Here is my code
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#define BLYNK_MAX_READBYTES 1024
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "xxxxxxxxxxxx";
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "xxxxxxx";
char pass[] = "xxxxxxxx";
// reference https://ttapp.nl/sbapi?getmatch&date=20151106&clubid=1358&matchnr=20108
int datum = 20151106;
int clubid=1358;
int matchnr= 20108;
void setup()
{
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);
}
void loop()
{
Blynk.run();
}
BLYNK_WRITE(V0){
String webhookdata = param.asStr();
Serial.println(webhookdata);
}
BLYNK_WRITE(V1){
if (param.asInt() == 1) {
Blynk.virtualWrite(V0,datum,clubid,matchnr);
Serial.println(datum);
Serial.println(clubid);
Serial.println(matchnr);
}
}
On Blynk I created a button with V1 connected and the webhook is on V0 with the following url
https://ttapp.nl/sbapi?getmatch&date=/pin[0]/&clubid=/pin[1]/&matchnr=/pin[2]/
The only feedback I am getting is the values in the serial.println but no webhookdata in json
I thought it might have to do with the buffer but that was not it.
Cheers Robert