Community
cancel
Showing results for 
Search instead for 
Did you mean: 
ABasu1
Innovator
1,227 Views

Azure app service with Intel Edison

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 http://stackoverflow.com/questions/36836566/post-for-azure-mobile-web-app-working-from-arduino lead but with no solutions.

Any kind of help is appreciated.

4 Replies
idata
Community Manager
72 Views

Hi Avirup171,

 

 

When the authentication changed and the mobile service was replaced by an app service, do you see an error? There is information about the common error codes and information about API authorization here https://github.com/enableiot/iotkit-api/wiki/Api-Home https://github.com/enableiot/iotkit-api/wiki/Api-Home .

 

 

I also found this link which has lots of useful information on REST API. Take a look at http://www.programmableweb.com/news/how-to-add-restful-api-to-intel-edison-and-work-it/sponsored-con... http://www.programmableweb.com/news/how-to-add-restful-api-to-intel-edison-and-work-it/sponsored-con... and let me know if you found this helpful.

 

 

-Sergio

 

ABasu1
Innovator
72 Views

Can you provide me any sample? In the link posted in my query, a method has been suggested but not receiving anything.

idata
Community Manager
72 Views

idata
Community Manager
72 Views

Hi Avirup171,

 

 

Do you still need help with this thread, were you able to read data from the Azure App Service?

 

 

-Sergio

 

Reply