Disqus API using easyXDM
Opened this issue · 0 comments
murliatdure commented
Unable to achieve the disqus api using easyXDM.
var xhr = new easyXDM.Rpc({
remote: "https://disqus.com/api/3.0/"
}, {
remote: {
request: {} // request is exposed by /cors/
}
});
xhr.request({
url: "threads/create.json",
method: "POST",
data: {
title : 'OutletsThread',
forum : 'smartForum',
message : 'Buzz ur interest',
access_token : disqusAPI.accessToken
}
}, function(response) { //res, code
alert(response.status);
alert(response.data);
});