Integrations and APIs - Database Synchronization APIs


CivicReady
®

Pending Requests

Overview

The Pending Requests API allows you to approve or reject pending group requests and pending topics requests.

 Group pending requests API  XML Format
To fetch all group pending requests https://regroup.com/api/v2/group_membership_requests?api_key=NetworkAPIKEY
To approve/reject pending group Memebership requests (Post the data below to this URL) https://regroup.com/api/v2/group_membership_requests?api_key=NetworkAPIKEY
To approve/reject pending group membership requests using email <group_membership_requests type="array">
<membership_request>
<email>user1test1@email.com</email>
<groupID>XXXXXX</groupID>
<action>approve</action>
</membership_request>
<membership_request>
<email>user2test2@email.com</email>
<groupID>XXXXXX</groupID>
<action>reject</action>
</membership_request>
</group_membership_requests>
To approve/reject pending group membership requests using DatabaseID <group_membership_requests type="array">
<membership_request>
<databaseID>User1Test1DBID</databaseID>
<groupID>XXXXXX</groupID>
<action>approve</action>
</membership_request>
<membership_request>
<databaseID>User2Test2DBID</databaseID>
<groupID>XXXXXX</groupID>
<action>reject</action>
</membership_request>
</group_membership_requests>
Pending Topic requests API  
   
To fetch all pending topic requests https://regroup.com/api/v2/pending_topic_requests?api_key=NetworkAPIKEY
To approve/reject pending topic requests (Post the data below to this URL) https://regroup.com/api/v2/pending_topic_requests?api_key=NetworkAPIKEY
To approve/reject pending topic requests <pending_topic_requests type="array">
<topic_request>
<topicID>test-message-header</topicID>
<groupID>XXXXXX</groupID>
<action>approve</action>
</topic_request>
<topic_request>
<topicID>test-message-header</topicID>
<groupID>XXXXXX</groupID>
<action>reject</action>
</topic_request>
</pending_topic_requests> 
   
Example curl command to manage pending requests (Membership and Topics):
   
CURL - Group pending requests API  
To approve/reject pending group requests curl -H 'Content-Type: application/xml' -X POST -d '<?xml version="1.0" encoding="UTF-8"?>
<group_membership_requests type="array">
<membership_request>
<email>user1test1@email.com</email>
<groupID>XXXXXX</groupID>
<action>approve</action>
</membership_request>
<membership_request>
<email>user2test2@email.com</email>
<groupID>XXXXXX</groupID>
<action>reject</action>
</membership_request>
</group_membership_requests>' https://regroup.com/api/v2/group_membership_requests?api_key=NetworkAPIKEY
To approve/reject pending group membership requests using DatabaseID curl -H 'Content-Type: application/xml' -X POST -d '<?xml version="1.0" encoding="UTF-8"?>
<group_membership_requests type="array">
<membership_request>
<databaseID>User1Test1DBID</databaseID>
<groupID>XXXXXX</groupID>
<action>approve</action>
</membership_request>
<membership_request>
<databaseID>User2Test2DBID</databaseID>
<groupID>XXXXXX</groupID>
<action>reject</action>
</membership_request>
</group_membership_requests>'
CURL - Pending Topic requests API  
To approve/reject pending topic requests curl -H 'Content-Type: application/xml' -X POST -d '<?xml version="1.0" encoding="UTF-8"?>
<pending_topic_requests type="array">
<topic_request>
<topicID>test-message-header</topicID>
<groupID>XXXXXX</groupID>
<action>approve</action>
</topic_request>
<topic_request>
<topicID>test-message-header</topicID>
<groupID>XXXXXX</groupID>
<action>reject</action>
</topic_request>
</pending_topic_requests>' https://regroup.com/api/v2/pending_topic_requests?api_key=NetworkAPIKEY



I'd Like to Request an Enhancement

0 out of 0 found this helpful

Updated:
Follow