This file contains 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 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 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 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 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; |
This file contains 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
<?php | |
date_default_timezone_set('America/Los_Angeles'); | |
$apikey = '<your disqus secret key>'; // Your Disqus secret key from http://disqus.com/api/ | |
$forum = '<your forum shortname>'; | |
$limit = '100'; // max is 100 for this endpoint. 25 is default | |
$order = 'asc'; // asc = oldest to newest. default is desc | |
$since = '1362117600'; // 1362117600 = March 1, 2013 at Midnight | |
$accessToken = '<your admin access token>'; // Get your access token from your API application page: http://disqus.com/api/applications/ |
This file contains 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
/* | |
In your code-behind file, create a new instance of the DisqusSSO class, set the API key and call the generate method. NOTE: The method is overloaded and will optionally accept an avatar URL and/or a profile URL. | |
Depends on SSO class payload generator found here: https://github.com/disqus/DISQUS-API-Recipes/blob/master/cs/sso/DisqusSSO.cs | |
*/ | |
public string Payload { get; private set; } | |
public void GetSSOPayload(bool authenticated) | |
{ |
This file contains 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
import base64 | |
import hashlib | |
import hmac | |
import simplejson | |
import time | |
DISQUS_SECRET_KEY = '123456' | |
DISQUS_PUBLIC_KEY = 'abcdef' | |
def get_disqus_sso(user): |
This file contains 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
<cfcomponent displayname="Comment" hint="Disqus Interface"> | |
<cfset VARIABLES.stcMemberInfo = StructNew() /> | |
<cfset VARIABLES.intUnixTimestamp = DateDiff("s", CreateDate(1970,1,1), Now()) /> | |
<cfset VARIABLES.stgPublicKey = ""> | |
<cfset VARIABLES.stgPrivateKey = ""> | |
<cfset VARIABLES.stgForumShortName = ""> | |
<cfset getMemberInfo() > |
This file contains 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.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Newtonsoft.Json.Linq; | |
using System.Net.NetworkInformation; | |
using System.Net.Http; | |
using AdvancedREI.Net.Http.Compression; | |
using example_project.Resources; |
OlderNewer