4 Replies Latest reply on Sep 23, 2016 1:16 PM by Intel Corporation

    Azure app service with Intel Edison

    Avirup171

      Hi all,

       

      I wanted to read data from an azure app service's easy tables usign REST API. Before I did the same using Azure Mobile Services and my code was this

       

      if (client.connect(server, 80)) {
      
      
      
      
        // POST URI    sprintf(buffer, "GET /tables/%s HTTP/1.1", table_name);
        client.println(buffer);
      
      
        // Host header  
        sprintf(buffer, "Host: %s", server);
        client.println(buffer);
      
      
        // Azure Mobile Services application key  
        sprintf(buffer, "X-ZUMO-APPLICATION: %s", ams_key);
        client.println(buffer);
      
      
        // JSON content type  
        client.println("Content-Type: application/json");
      
      
        client.print("Content-Length: ");
        client.println(strlen(buffer));
      
      
        // End of headers  
        client.println();
      
      
        // Request body  
        client.println(buffer);
      
      
        }
      

       

       

      where server name was "genesis-iot-control.azure-mobile.net";

       

      but now authentication has changed and mobile service has been replaced by app service. How can I access them using REST API on Intel Edison?

       

      I had followed this lead but with no solutions.

       

      Any kind of help is appreciated.