Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagehtml/xml
titledeletePost
<facebook.deletePost>
	<postId>{$ctx:postId}</postId>
</facebook.deletePost>

 Properties 

  • postId: The post ID.
Anchor
request
request
Sample request

Following is a sample REST request for the deletePost method.

...

Code Block
languagehtml/xml
titledeletePost
<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
       name="facebook_deletePost"
       transports="https,http"
       statistics="disable"
       trace="disable"
       startOnLoad="true">
   <target>
      <inSequence onError="faultHandlerSeq">
         <property name="apiUrl"
                   expression="json-eval($.apiUrl)"/>
		 <property name="apiVersion"
                   expression="json-eval($.apiVersion)"/>
         <property name="accessToken"
                   expression="json-eval($.accessToken)"/>
         <property name="postId"
                   expression="json-eval($.postId)"/>
         <facebook.init>
            <apiUrl>{$ctx:apiUrl}</apiUrl>		    
			<apiVersion>{$ctx:apiVersion}</apiVersion>
            <accessToken>{$ctx:accessToken}</accessToken>
         </facebook.init>
         <facebook.deletePost>
            <postId>{$ctx:postId}</postId>
         </facebook.deletePost>
         <respond/>
      </inSequence>
      <outSequence>
         <property name="messageType" value="application/json" scope="axis2"/>
         <send/>
      </outSequence>
   </target>
   <description/>
</proxy>

...