GithubHelp home page GithubHelp logo

isabella232 / disqus-api-recipes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from disqus/disqus-api-recipes

0.0 0.0 0.0 429 KB

Cook all the things!

Shell 0.04% JavaScript 5.85% Ruby 1.48% Python 5.62% PHP 40.03% Java 1.87% Scala 1.42% ColdFusion 3.26% C# 4.30% Elixir 1.50% Swift 18.11% HTML 16.54%

disqus-api-recipes's Introduction

DISQUS API Recipes

A cookbook of common recipes to help expedite your development process when using the DISQUS API.

Table of Contents

Beginner

  • Get a thread's details: /php/get-thread-details.php
  • List a forum's 100 most active users and their comment counts: /php/list-100-most-active-users.php
  • Get an SSO account's username: /php/get-sso-username.php
  • Create a guest comment: /php/create-guest-comment.php
  • Locates and deletes duplicate comments: /php/deduping_script.php

Intermediate

  • List all replies to a parent comment: /php/list-all-replies-to-a-parent.php
  • List all threads created between a given date and now: /php/list-all-threads-between-date-and-now.php
  • Add users to the whitelist via CSV file: /php/add_to_whitelist.php
  • Close a thread using a single access token: /php/single_access_token.php
  • Three-button test script for DISQUS.reset (AJAX reset method): /html/disqus_reset.html
  • OAuth example: /oauth/oauth-test.php

Advanced

  • Test SSO with a single user: /php/sso_test_recipe.php
  • Generate an SSO remote_auth_s3 payload in C# .NET: /ASP.NET/generate_SSO_payload.cs
  • (1/2) Get a forum's most popular threads and write to a cache file: /php/get_and_write_popular_threads_to_cache.php
  • (2/2) Get popular threads from cache file and display them: /php/get_popular_threads_from_cache.php

Requirements

For PHP scripts:

  • PHP, preferably the latest version
  • (Optional) DISQUS API bindings for PHP — none of these .php files require the bindings. Only use the bindings if you know you need them and already know how to use them.

Usage

Run any of these files as-is. Enjoy!

Requests

Email us any requests.

Note: The integrity and utility of these recipes is very important to us. This means keeping them tidy and aimed at a wide audience. If you request a very specific recipe we may make it less specific so it's more accessible.

Support

These recipes are meant as a starting point. Most recipes have only been tested to work with the latest version of Chrome stable at the time of creation. YMMV.

disqus-api-recipes's People

Contributors

ryanvalentin avatar taltonfiggins avatar thetylerhayes avatar gddhatdisqus avatar hlgott1593 avatar alexfilatov avatar tterb avatar chiliec avatar northisup avatar alexwilton avatar smithc avatar hovspian avatar drake69 avatar louisrli avatar rxaviers avatar sagarjunnarkar avatar gddh avatar the-wazz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.