PhoneGnome API >> phonegnome.addContact
phonegnome.addContact
Add a contact to the my.phonegnome.com on-line Phonebook.
URI
All XML-RPC requests should go to the following URI: http://my.phonegnome.com/RPC2
Parameters
- country_code (string): Country code of the PhoneGnome
- phone_number (string): Telephone number of the PhoneGnome
- md5_pin (string): MD5 hash of the PIN of the PhoneGnome account (PIN is same as that of the my.phonegnome.com dashboard)
- contact_name (string): Name of the contact
- contact_number (string): Phone number (or SIP address) of the contact
- contact_email (string): Email for contact
Examples
Example XML-RPC request
<?xml version="1.0"?>
<methodCall>
<methodName>phonegnome.addContact</methodName>
<params>
<param>
<value><string>1</string></value>
</param>
<param>
<value><string>3605551212</string></value>
</param>
<param>
<value><string>844dda78e8a09008813020f47215e2a3</string></value>
</param>
<param>
<value><string>James Garlow</string></value>
</param>
<param>
<value><string>18005551212</string></value>
</param>
<param>
<value><string>jhg@garlow.org</string></value>
</param>
</params>
</methodCall>
Successful Response
<?xml version="1.0"?> <methodResponse> <params> <param> <value><string>ok</string></value> </param> </params> </methodResponse>
Error Response
<?xml version="1.0"?>
<methodResponse>
<fault>
<value>
<struct>
<member>
<name>faultString</name>
<value><string>failed to add contact</string></value>
</member>
<member>
<name>faultCode</name>
<value><int>600</int></value>
</member>
</struct>
</value>
</fault>
</methodResponse>
