PhoneGnome API >> phonegnome.getConfig
phonegnome.getConfig
Retrieve the value for a specified PhoneGnome parameter.
The accepted parameter names are:
- c2d
- The ring-to destination for click-to-dial calls and Voice messages.
- c2ddelay
- The click to dial delay, in seconds.
- intlitsp
- The ITSP number (index) activated for International calls. Returns 0 if none (i.e. if not using an ITSP and using the local line).
- lditsp
- The ITSP number (index) activated for Long-distance (national) calls. Returns 0 if none (i.e. if using the local line).
- fwlditsp
- The ITSP number (index) activated for forwarding and second leg of multi-hop calls. Returns 0 if none (i.e. if forwarding/multi-hop features unavailable).
- fm
- Returns flag indicating status of find-me/follow-me. 1 means enabled. 0 means disabled.
- dt
- Returns flag indicating status of DialTone 2.0. 1 means enabled. 0 means disabled.
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 placing the call
- md5_pin (string): MD5 hash of the PIN of the PhoneGnome account (PIN is same as that of the my.phonegnome.com dashboard)
- parameter_name (string): the parameter to modify (per above)
Examples
Example XML-RPC request
<?xml version="1.0"?>
<methodCall>
<methodName>phonegnome.getConfig</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>c2d</string></value>
</param>
</params>
</methodCall>
Successful Response
<?xml version="1.0"?> <methodResponse> <params> <param> <value><string>16505558775</string></value> </param> </params> </methodResponse>
Error Response
<?xml version="1.0"?>
<methodResponse>
<fault>
<value>
<struct>
<member>
<name>faultString</name>
<value><string>operation failed</string></value>
</member>
<member>
<name>faultCode</name>
<value><int>600</int></value>
</member>
</struct>
</value>
</fault>
</methodResponse>
