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
/* | |
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 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
/* | |
This script will calculate the Disqus SSO payload package | |
Please see the Integrating SSO guide to find out how to configure your account first: | |
http://help.disqus.com/customer/portal/articles/236206 | |
This example uses the Jackson JSON processor: http://jackson.codehaus.org/Home | |
*/ | |
String DISQUS_SECRET_KEY = "<YOUR_SECRET_KEY>"; // Your Disqus secret key from http://disqus.com/api/applications/ | |
// User data, replace values with authenticated user data |
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
<?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/ |
NewerOlder