-
Notifications
You must be signed in to change notification settings - Fork 3
createPost
Flow edited this page Jun 3, 2015
·
2 revisions
This function is based on the disqus posts/create API. Use it like this:
let threadID = "1234"
disqusManager.createPost("Hello world!", inThread: threadID, onSuccess: {
// Succeed !
}, onFailure: {
// Failed !
})
// OR WITH PARENT
disqusManager.createPost("Hello world!", inThread: threadID, withParent: "2345", onSuccess: {
// Succeed !
}, onFailure: {
// Failed !
})
NB: You need to be authenticated to use this function, see Authentication. You can check if the user is authenticated with isUserAuthenticated().