...
Anchor | ||||
---|---|---|---|---|
|
The getPost
getPost
operation returns information about a post.
Code Block | ||||
---|---|---|---|---|
| ||||
<disqus.getPost> <related>{$ctx:related}</related> <postId>{$ctx:postId}</postId> </disqus.getPost> |
Properties
related:
postId:
...
Code Block | ||||
---|---|---|---|---|
| ||||
<disqus.listPosts> <forumId>{$ctx:forumId}</forumId> <categoryId>{$ctx:categoryId}</categoryId> <since>{$ctx:since}</since> <cursor>{$ctx:cursor}</cursor> <limit>{$ctx:limit}</limit> <query>{$ctx:query}</query> <popular>{$ctx:popular}</popular> <interval>{$ctx:interval}</interval> <offset>{$ctx:offset}</offset> <include>{$ctx:include}</include> <order>{$ctx:order}</order> <related>{$ctx:related}</related> <threadId>{$ctx:threadId}</threadId> <userId>{$ctx:userId}</userId> </disqus.listPosts> |
Properties
forumId:
categoryId:
since:
cursor:
limit:
query:
popular:
interval:
offset:
include:
order:
related:
threadId:
userId:
Info | title | Special Notes|||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
The table below explains how the which Disqus API method (endpoint) is chosen used for the
* Will not be considered when deciding even when a value is supplied in the request. In case of optional parameters, they will be added as they are. EP 1 endpoint: https://disqus.com/api/3.0/posts/listPopular.json EP 2 endpoint: https://disqus.com/api/docs/threads/listPosts.json EP 3 endpoint: https://disqus.com/api/docs/categories/listPosts.json EP 4 endpoint: https://disqus.com/api/docs/forums/listPosts.json EP 5 endpoint: |
...
Code Block | ||||
---|---|---|---|---|
| ||||
<?xml version="1.0" encoding="UTF-8"?>
<proxy name="disqus_getPost" startOnLoad="true" statistics="disable" trace="disable" transports="https,http" xmlns="http://ws.apache.org/ns/synapse">
<target>
<inSequence onError="faultHandlerSeq">
<property name="apiUrl" expression="json-eval($.apiUrl)"/>
<property name="apiKey" expression="json-eval($.apiKey)"/>
<property name="apiSecret" expression="json-eval($.apiSecret)"/>
<property name="accessToken" expression="json-eval($.accessToken)"/>
<property name="related" expression="json-eval($.related)"/>
<property name="postId" expression="json-eval($.postId)"/>
<disqus.init>
<apiUrl>{$ctx:apiUrl}</apiUrl>
<apiKey>{$ctx:apiKey}</apiKey>
<apiSecret>{$ctx:apiSecret}</apiSecret>
<accessToken>{$ctx:accessToken}</accessToken>
</disqus.init>
<disqus.getPost>
<related>{$ctx:related}</related>
<postId>{$ctx:postId}</postId>
</disqus.getPost>
<respond/>
</inSequence>
<outSequence>
<send/>
</outSequence>
</target>
<description/>
</proxy> |