Skip to content

Instantly share code, notes, and snippets.

@ferclaverino
Created November 12, 2012 16:34
Show Gist options
  • Save ferclaverino/4060353 to your computer and use it in GitHub Desktop.
Save ferclaverino/4060353 to your computer and use it in GitHub Desktop.
Insert Windows Mobile Services
function insertArticle(article) {
var client = getMobileServiceClient();
var item = { text: article.title, img: article.backgroundImage };
client.getTable("MostViewed").insert(item);
}
function getMobileServiceClient() {
var client = new Microsoft.WindowsAzure.MobileServices.MobileServiceClient(
"https://myMobileServicesApp.azure-mobile.net/",
"myMobileServicesAppIdhKXrnRFpwu70"
);
return client;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment