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
// Url of Comments page | |
private string CommentsUri = "http://yoursite.com/comments/your_static_comments_page.html?" | |
+ "shortname=" + "YOUR_SHORTNAME" | |
+ "&url=" + HttpUtility.UrlEncode("ORIGINAL_ARTICLE_URL") | |
+ "&title=" + HttpUtility.UrlEncode("ORIGINAL_ARTICLE_TITLE") | |
+ "&identifier=" + HttpUtility.UrlEncode("ORIGINAL_ARTICLE_IDENTIFIER"); | |
private void Browser_Loaded(object sender, RoutedEventArgs e) | |
{ | |
Browser.IsScriptEnabled = true; // Make sure javascript is enabled |
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
<div id="disqus_thread" onresize="setHeight()"></div> | |
<script type="text/javascript"> | |
// Blog variables | |
var blog; | |
var msg = new gadgets.MiniMessage(__MODULE_ID__); | |
var prefs = new gadgets.Prefs(); | |
// Disqus variables | |
var disqus_shortname = prefs.getString("shortname"); |
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
using Newtonsoft.Json; | |
using Newtonsoft.Json.Linq; | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Net; | |
using System.Net.Http; | |
using System.Threading.Tasks; | |
namespace Example |
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
using Microsoft.Phone.Controls; | |
using Microsoft.Phone.Info; | |
using System; | |
using System.ComponentModel; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using System.Windows; | |
using System.Windows.Controls; | |
using System.Windows.Navigation; |
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
using Newtonsoft.Json; | |
using Newtonsoft.Json.Linq; | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Net; | |
using System.Net.Http; | |
using System.Threading.Tasks; | |
namespace Example |
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
// Disqus API public key | |
var apiPublic = 'YOUR_PUBLIC_KEY'; | |
// Disqus API secret key | |
var apiSecret = 'YOUR_SECRET_KEY'; | |
// Should match exactly what you've entered in your Disqus API application | |
var oAuthRedirectUri = 'https://MOBILE_SERVICE_NAME.azure-mobile.net/api/disqus_callback/'; | |
exports.get = function(request, response) { |
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
// Disqus API public key | |
var apiPublic = 'YOUR_PUBLIC_KEY'; | |
// Disqus API secret key | |
var apiSecret = 'YOUR_SECRET_KEY'; | |
// Should match exactly what you've entered in your Disqus API application | |
var oAuthRedirectUri = 'https://MOBILE_SERVICE_NAME.azure-mobile.net/api/disqus_callback/'; | |
exports.get = function(request, response) { |
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
// Disqus API public key | |
var apiPublic = 'YOUR_PUBLIC_KEY'; | |
// Disqus API secret key | |
var apiSecret = 'YOUR_SECRET_KEY'; | |
// Should match exactly what you've entered in your Disqus API application | |
var oAuthRedirectUri = 'https://MOBILE_SERVICE_NAME.azure-mobile.net/api/disqus_callback/'; | |
// Master key from your mobile service configuration |
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
private static readonly Dictionary<string, string> _deviceMap = new Dictionary<string, string> | |
{ | |
{ "ACCORD", "HTC 8X" }, | |
{ "H883G", "Huawei W1" }, | |
{ "MOBILE", "Cherry Mobile Alpha Luxe" }, | |
{ "P4301", "Lumia 920" }, | |
{ "P5122", "Lumia 620" }, | |
{ "P5174", "Lumia 820" }, | |
{ "P5217", "Lumia 1020" }, | |
{ "P5238", "Unknown Lumia (P5238)"}, |
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
using System; | |
using System.Text; | |
namespace Disqus.Core.Api.Models | |
{ | |
public sealed class DsqWordpressIdentifier | |
{ | |
public DsqWordpressIdentifier(long wordpressId, Uri siteUrl) | |
{ | |
this.WordpressId = wordpressId; |