Application Programming Interface (API)
An application programming interface (API) is an interface that a software implements in order to allow other software to interact with much in the same way that a user interface allows human to interact with it.
InPhonex Telecom had developed a complete API that permit our partners to connect their websites and other applications to our platform. Through our API our partners can control nearly every aspect of our platform including:
Example API Function
CallCreditList
Get a list of all customer's call credit
Parameters
- StateId - String
The StateId generated by the Auth service
- CustomerId - Integer
Customer Id
Example
<?php $Customer = new SoapClient( 'https://services.inphonex.com/0.11/soap/Accounts/Customer/Customer.php?wsdl' ); $arr_parameters[ 'StateId' ] = '03b1479fc8e383ef6a159883aa39359ba58a479'; $arr_parameters[ 'CustomerId' ] = '999999';
try { $obj_return=$Customer->CallCreditList( $arr_parameters )->CallCreditListReturn; /** * Your code here */ } catch (Exception $e) { echo $e->getMessage(); exit; } ?>
Return
CallCreditsList
Return "(T) CallCreditsList"
<xs:complexType name="CallCreditsList">
<xs:sequence>
<xs:element name="call_credits" type="tns:CallCreditInfo" minOccurs="0" maxOccurs="unbounded" /> <!-- -->
</xs:sequence>
</xs:complexType>
<xs:complexType name="CallCreditInfo">
<xs:sequence>
<xs:element name="date_created" type="xs:string" minOccurs="" maxOccurs="" /> <!-- -->
<xs:element name="last_used" type="xs:string" minOccurs="" maxOccurs="" /> <!-- -->
<xs:element name="prepay_id" type="xs:int" minOccurs="" maxOccurs="" /> <!-- -->
<xs:element name="original_amount" type="xs:string" minOccurs="" maxOccurs="" /> <!-- -->
<xs:element name="remaining_amount" type="xs:string" minOccurs="" maxOccurs="" /> <!-- -->
<xs:element name="var_rate" type="xs:boolean" minOccurs="" maxOccurs="" /> <!-- -->
</xs:sequence>
</xs:complexType>
|