-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
464 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
~ Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). All Rights Reserved. | ||
~ | ||
~ This software is the property of WSO2 LLC. and its suppliers, if any. | ||
~ Dissemination of any information or reproduction of any material contained | ||
~ herein is strictly forbidden, unless permitted by WSO2 in accordance with | ||
~ the WSO2 Software License available at: https://wso2.com/licenses/eula/3.2 | ||
~ For specific language governing the permissions and limitations under | ||
~ this license, please see the license as well as any agreement you’ve | ||
~ entered into with WSO2 governing the purchase of this software and any | ||
~ associated services. | ||
--> | ||
|
||
<!-- Generated on 03-Thu, 10, 2024 22:01:35+0530 --> | ||
|
||
<template xmlns="http://ws.apache.org/ns/synapse" name="createCustomAudience"> | ||
<!-- Path Parameter List --> | ||
<parameter name="adAccountId" description="The ID of the ad account."/> | ||
<!-- Request Body Parameter List --> | ||
<parameter name="name" description="Name of the custom audience. Type: string"/> | ||
<parameter name="description" description="Description of the custom audience. Type: string"/> | ||
<parameter name="subtype" description="The type of custom audience being created. Type: string"/> | ||
<parameter name="retentionDays" description="The number of days to retain audience members. Type: integer"/> | ||
<parameter name="rule" description="A rule that defines this custom audience. Type: string"/> | ||
<sequence> | ||
<class name="org.wso2.healthcare.integration.common.ehr.RestURLBuilder"> | ||
<property name="operationPath" value="/act_{ad_account_id}/custom_audiences"/> | ||
<property name="pathParameters" value="adAccountId,"/> | ||
</class> | ||
<payloadFactory media-type="json" template-type="freemarker"> | ||
<format> | ||
<![CDATA[{ | ||
<#if (args.arg1)?has_content> | ||
"name": "${args.arg1}", </#if> | ||
<#if (args.arg2)?has_content> | ||
"description": "${args.arg2}", </#if> | ||
<#if (args.arg3)?has_content> | ||
"subtype": "${args.arg3}", </#if> | ||
<#if (args.arg4)?has_content> | ||
"retention_days": "${args.arg4}", </#if> | ||
<#if (args.arg5)?has_content> | ||
"rule": "${args.arg5}" </#if> | ||
}]]> | ||
</format> | ||
<args> | ||
<arg evaluator="xml" expression="$func:name"/> | ||
<arg evaluator="xml" expression="$func:description"/> | ||
<arg evaluator="xml" expression="$func:subtype"/> | ||
<arg evaluator="xml" expression="$func:retentionDays"/> | ||
<arg evaluator="xml" expression="$func:rule"/> | ||
</args> | ||
</payloadFactory> | ||
<property name="DISABLE_CHUNKING" scope="axis2" type="STRING" value="true"/> | ||
<property name="messageType" value="application/json" scope="axis2"/> | ||
<property name="ContentType" value="application/json" scope="axis2"/> | ||
<call> | ||
<endpoint> | ||
<http method="POST" uri-template="{uri.var.base}{+uri.var.urlPath}{+uri.var.urlQuery}"/> | ||
</endpoint> | ||
</call> | ||
<class name="org.wso2.healthcare.integration.common.ehr.ResponseProcessingHandler"/> | ||
|
||
<!-- Remove custom header information --> | ||
<header name="x-business-use-case-usage" scope="transport" action="remove"/> | ||
<header name="facebook-api-version" scope="transport" action="remove"/> | ||
<header name="Strict-Transport-Security" scope="transport" action="remove"/> | ||
<header name="x-fb-request-id" scope="transport" action="remove"/> | ||
<header name="x-fb-trace-id" scope="transport" action="remove"/> | ||
<header name="x-fb-rev" scope="transport" action="remove"/> | ||
<header name="X-FB-Debug" scope="transport" action="remove"/> | ||
<header name="x-fb-server-load" scope="transport" action="remove"/> | ||
<header name="X-FB-Connection-Quality" scope="transport" action="remove"/> | ||
<header name="Alt-Svc" scope="transport" action="remove"/> | ||
</sequence> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
~ Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). All Rights Reserved. | ||
~ | ||
~ This software is the property of WSO2 LLC. and its suppliers, if any. | ||
~ Dissemination of any information or reproduction of any material contained | ||
~ herein is strictly forbidden, unless permitted by WSO2 in accordance with | ||
~ the WSO2 Software License available at: https://wso2.com/licenses/eula/3.2 | ||
~ For specific language governing the permissions and limitations under | ||
~ this license, please see the license as well as any agreement you’ve | ||
~ entered into with WSO2 governing the purchase of this software and any | ||
~ associated services. | ||
--> | ||
|
||
<!-- Generated on 03-Thu, 10, 2024 22:01:35+0530 --> | ||
|
||
<template xmlns="http://ws.apache.org/ns/synapse" name="getCustomAudiences"> | ||
<!-- Path Parameter List --> | ||
<parameter name="adAccountId" description="The ID of the ad account."/> | ||
<!-- Query Parameter List --> | ||
<parameter name="fields" description="Comma-separated list of fields to retrieve for each custom audience."/> | ||
<sequence> | ||
<class name="org.wso2.healthcare.integration.common.ehr.RestURLBuilder"> | ||
<property name="operationPath" value="/act_{ad_account_id}/custom_audiences"/> | ||
<property name="pathParameters" value="adAccountId,"/> | ||
<property name="queryParameters" value="fields,"/> | ||
</class> | ||
<header name="Accept" value="application/json" scope="transport" action="set"/> | ||
<call> | ||
<endpoint> | ||
<http method="GET" uri-template="{uri.var.base}{+uri.var.urlPath}{+uri.var.urlQuery}"/> | ||
</endpoint> | ||
</call> | ||
<class name="org.wso2.healthcare.integration.common.ehr.ResponseProcessingHandler"/> | ||
|
||
<!-- Remove custom header information --> | ||
<header name="x-business-use-case-usage" scope="transport" action="remove"/> | ||
<header name="facebook-api-version" scope="transport" action="remove"/> | ||
<header name="Strict-Transport-Security" scope="transport" action="remove"/> | ||
<header name="x-fb-request-id" scope="transport" action="remove"/> | ||
<header name="x-fb-trace-id" scope="transport" action="remove"/> | ||
<header name="x-fb-rev" scope="transport" action="remove"/> | ||
<header name="X-FB-Debug" scope="transport" action="remove"/> | ||
<header name="x-fb-server-load" scope="transport" action="remove"/> | ||
<header name="X-FB-Connection-Quality" scope="transport" action="remove"/> | ||
<header name="Alt-Svc" scope="transport" action="remove"/> | ||
</sequence> | ||
</template> |
Oops, something went wrong.