Skip to content

listPostInThread

Flow edited this page Jun 3, 2015 · 1 revision

This function is based on the disqus threads/listPosts API. Use it like this:

let threadID = "1234"
disqusManager.listPostsInThread(threadID, { comments, error in
    if error != nil {
        println("\(error.localizedDescription)")
    }
    else {
        // do something with comments
    }
})
// OR USE THREAD LINK
let threadLink = "http://my-website.com/my-post/"
disqusManager.listPostsInThread(link: threadLink, { comments, error in
    if error != nil {
        println("\(error.localizedDescription)")
    }
    else {
        // do something with comments
    }
})
// OR USE THREAD IDENTIFIER
let threadIdent = "my-identifier"
disqusManager.listPostsInThread(ident: threadIdent, { comments, error in
    if error != nil {
        println("\(error.localizedDescription)")
    }
    else {
        // do something with comments
    }
})

Clone this wiki locally