-
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.
Merge pull request #5 from aashikam/users
Add audience/user management APIs
- Loading branch information
Showing
11 changed files
with
413 additions
and
5 deletions.
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
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,60 @@ | ||
<!-- | ||
~ Copyright (c) 2024, WSO2 LLC. (http://www.wso2.org) All Rights Reserved. | ||
~ | ||
~ WSO2 LLC. licenses this file to you under the Apache License, | ||
~ Version 2.0 (the "License"); you may not use this file except | ||
~ in compliance with the License. | ||
~ You may obtain a copy of the License at | ||
~ | ||
~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, | ||
~ software distributed under the License is distributed on an | ||
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
~ KIND, either express or implied. See the License for the | ||
~ specific language governing permissions and limitations | ||
~ under the License. | ||
--> | ||
|
||
<!-- Generated on 16-Wed, 10, 2024 19:59:26+0530 --> | ||
|
||
<template xmlns="http://ws.apache.org/ns/synapse" name="addUsersToAudience"> | ||
<!-- Path Parameter List --> | ||
<parameter name="customAudienceId" description="The ID of the custom audience."/> | ||
<!-- Request Body Parameter List --> | ||
<parameter name="properties" description="Custom audience users properties."/> | ||
<sequence> | ||
<class name="org.wso2.carbon.facebook.ads.connector.RestURLBuilder"> | ||
<property name="operationPath" value="/{custom_audience_id}/users"/> | ||
<property name="pathParameters" value="customAudienceId,"/> | ||
</class> | ||
<payloadFactory media-type="json" template-type="freemarker"> | ||
<format><![CDATA[ | ||
${args.arg1} | ||
]]></format> | ||
<args> | ||
<arg evaluator="xml" expression="$func:properties"/> | ||
</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"/> | ||
<header name="Accept" value="application/json" scope="transport" action="set"/> | ||
<call> | ||
<endpoint> | ||
<http method="POST" uri-template="{uri.var.base}{+uri.var.urlPath}{+uri.var.urlQuery}"/> | ||
</endpoint> | ||
</call> | ||
<!-- 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
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,60 @@ | ||
<!-- | ||
~ Copyright (c) 2024, WSO2 LLC. (http://www.wso2.org) All Rights Reserved. | ||
~ | ||
~ WSO2 LLC. licenses this file to you under the Apache License, | ||
~ Version 2.0 (the "License"); you may not use this file except | ||
~ in compliance with the License. | ||
~ You may obtain a copy of the License at | ||
~ | ||
~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, | ||
~ software distributed under the License is distributed on an | ||
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
~ KIND, either express or implied. See the License for the | ||
~ specific language governing permissions and limitations | ||
~ under the License. | ||
--> | ||
|
||
<!-- Generated on 16-Wed, 10, 2024 19:59:26+0530 --> | ||
|
||
<template xmlns="http://ws.apache.org/ns/synapse" name="removeUsersFromAudience"> | ||
<!-- Path Parameter List --> | ||
<parameter name="customAudienceId" description="The ID of the custom audience."/> | ||
<!-- Request Body Parameter List --> | ||
<parameter name="properties" description="Custom audience users properties."/> | ||
<sequence> | ||
<class name="org.wso2.carbon.facebook.ads.connector.RestURLBuilder"> | ||
<property name="operationPath" value="/{custom_audience_id}/users"/> | ||
<property name="pathParameters" value="customAudienceId,"/> | ||
</class> | ||
<payloadFactory media-type="json" template-type="freemarker"> | ||
<format><![CDATA[ | ||
${args.arg1} | ||
]]></format> | ||
<args> | ||
<arg evaluator="xml" expression="$func:properties"/> | ||
</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"/> | ||
<header name="Accept" value="application/json" scope="transport" action="set"/> | ||
<call> | ||
<endpoint> | ||
<http method="DELETE" uri-template="{uri.var.base}{+uri.var.urlPath}{+uri.var.urlQuery}"/> | ||
</endpoint> | ||
</call> | ||
<!-- 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.