public PushService() { var packageSid = "ms-app://s-1-15-2-1365235042-3950292793-1450507326-4003872592-2110243094-239169135-4162116563"; var secret = "P00x4b78vxQnaN799gyPJgbdbffRyJZ7"; _tokenProvider = new WnsAccessTokenProvider(packageSid, secret); LoadClients(); }
public ActionResult FacebookLogof() { WnsAccessTokenProvider accessToken = new WnsAccessTokenProvider("435567116484698", "ca5f010bb5a0ccd080cb2d47c6d41f88"); //WnsAccessTokenProvider accessToken = new WnsAccessTokenProvider(435567116484698,"ca5f010bb5a0ccd080cb2d47c6d"); string logoutUrl = String.Format(" facebook.com/logout.php?access_token={0}&next={1}", accessToken, Url.Action("Index", "Support")); return Redirect(logoutUrl); //return Redirect("https://www.facebook.com/logout.php?" // + "next=" + facebookLogoffUrl + "&access_token=" + accessToken); }
public void Post(CookNotification value) { string _sid = "ms-app://s-1-15-2-3490005423-2092235862-851178901-3873143473-3545419550-1108801967-2247023826"; string _secret = "h7iaaJ9aYo6Ct3oguM6TxkKyANJgSUwH"; WnsAccessTokenProvider tokenProvider = new WnsAccessTokenProvider(_sid, _secret); var title = value.title; var subText = value.message; var tileNotification = TileContentFactory.CreateTileWideText01(); tileNotification.RequireSquareContent = false; tileNotification.TextHeading.Text = title; tileNotification.TextBody1.Text = subText; tileNotification.Send(new Uri(value.channelUri), tokenProvider); var toastNotification = ToastContentFactory.CreateToastText02(); toastNotification.TextHeading.Text = title; toastNotification.TextBodyWrap.Text = subText; toastNotification.Send(new Uri(value.channelUri), tokenProvider); }