Integrations and APIs - Database Synchronization APIs


CivicReady
®

Managing Phone Numbers

Overview

The Phone Number API allows you to manage user's phone numbers. You can look up a user by a phone number, and add or delete a phone number for a user.

Managing Phone Numbers XML Format
   
API URL https:/regroup.com/api/v2/phone_numbers?api_key=NetworkAPIKEY
To add a new phone number

for <userID> you can use userID, external databaseID or email. It will work for all three…
<phone_numbers type="array">
<phone_number>
<action>add</action>
<phone>5551234501</phone>
<countryCode>1</countryCode>
<userID>user1test1</userID>
</phone_number>
</phone_numbers>
To Delete the phone number <phone_numbers type="array">
<phone_number>
<action>delete</action>
<phone>5551234502</phone>
<userID>user2test2</userID>
</phone_number>
</phone_numbers>
   
   
CURL - Manage Phone Numbers:  
   
To add a new phone number

for <userID> you can userID, external databaseID or email.. It will work for all three...
curl -H 'Content-Type: application/xml' -X POST -d '<?xml version="1.0" encoding="UTF8"?>
<phone_numbers type="array">
<phone_number>
<action>add</action>
<phone>5555551212</phone>
<countryCode>1</countryCode>
<userID>test-user13</userID>
</phone_number>
</phone_numbers>'
https://regroup.com/api/v2/phone_numbers?api_key=NetworkAPIKEY
To Delete the phone number curl -H 'Content-Type: application/xml' -X POST -d '<?xml version="1.0" encoding="UTF8"?>
<phone_numbers type="array">
<phone_number>
<action>delete</action>
<phone>5555551212</phone>
<userID>test-user13</userID>
</phone_number>
</phone_numbers>'
https://regroup.com/api/v2/phone_numbers?api_key=NetworkAPIKEY
?



I'd Like to Request an Enhancement

0 out of 0 found this helpful

Updated:
Follow