Created
November 12, 2012 16:34
-
-
Save ferclaverino/4060353 to your computer and use it in GitHub Desktop.
Insert Windows Mobile Services
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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