ESP8266 first code help

The analogRead was just to see that the sensor is working
I have read the esp8266 documentation - and didn't find an answer there
I'm using this ESP8266
https://www.ebay.com/itm/New-ESP8266-Serial-WIFI-Wireless-Transceiver-WLAN-Module-for-Arduino-8051-AVR/231816914527?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2057872.m2749.l2649

as you can see he have only 2 GPIO

also all the code is working - because I can see in wiresahrk on my netwrok that the module is sending the data to the server .
it's just been "ignore"? I have send mail to them - but didn't get any repaly

also If I create a server on my computer and send the data to my computer - I can see that everytime he send me the notification.
so maye I need to add "delay"? or wait until I'm getting an answer from the Notification server ?

this is the full code :

/************
  GeeksTips.com
  ESP8266 Arduino Tutorial - Push notification messages example
  Arduino code example
  www.geekstips.com

  - replace the dots with your Wi-fi credentials and
  - your deviceId from pushingBox account
*/
#include <ESP8266WiFi.h>

// PushingBox scenario DeviceId code and API
String deviceId = "v12451BA7TR33CAB";
const char* logServer = "api.pushingbox.com";

const char* ssid = "David";
const char* password = "1234556788";

const int GPIO2 = 2;//door sensor input
bool sending = false;



void setup() {
  Serial.begin(115200);
  delay(1);


  // Sending a notification to your mobile phone
  // function takes the message as a parameter

  Serial.println("- connecting to Home Router SID: " + String(ssid));

  WiFi.begin(ssid, password);
  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
    Serial.print(".");
  }

  Serial.println();
  Serial.println("- succesfully connected");
  Serial.println("IP address: ");
  Serial.println(WiFi.localIP());

  delay(500);
  pinMode (GPIO2 , INPUT);
  delay(1500);
  sendNotification("Sensor is now OnLIne!!");
}



void loop()
{

  if (digitalRead(GPIO2) == LOW)
  {
    String  line = "Door1 is Close";
    if (sending == false)
    {
      Serial.println(line);
      sendNotification(line);
      sending = true;
    }


  }

  else
  {
    String line = "Door1 is Open";
    if (sending == true)
    {
      Serial.println(line);
      sendNotification(line);
      sending = false;

    }


  }
}


void sendNotification(String message) {

  Serial.println("starting client");

  WiFiClient client;

  Serial.println("- connecting to pushing server: " + String(logServer));
  if (client.connect(logServer, 80)) {
    Serial.println("- succesfully connected");
    Serial.println(deviceId);
    String postStr = "devid=";
    postStr += String(deviceId);
    postStr += "&message_parameter=";
    postStr += String(message);
    postStr += "\r\n\r\n";

    Serial.println("- sending data...");

    client.print("POST /pushingbox HTTP/1.1\n");
    client.print("Host: api.pushingbox.com\n");
    client.print("Connection: close\n");
    client.print("Content-Type: application/x-www-form-urlencoded\n");
    client.print("Content-Length: ");
    client.print(postStr.length());
    client.print("\n\n");
    client.print(postStr);
    Serial.println(postStr);
  }
  client.stop();
  Serial.println("- stopping the client");
}