?? api_ratecard.info
字號:
**************************************************************************************************** Rate Card Display : API****************************************************************************************************Product Name: Rate Card Display APIProduct Technology: SOAP WebService1. INTRODUCTIONRate API is a Webservice that enable you to integrate it in your Website. and Display the Calling Rates for Different Countries.2. INSTALLATIONYou can integrate the API with following steps. i). Paste the Following line in your page, Where you want to display data from this API. include ("<Web Server Address>a2billing/trunk/A2Billing_UI/api/display_ratecard.php?ratecardid=6&key=0951aa29a67836b860b0865bc495225c&page_url=<Your PAGE URL>&field_to_display=t1.destination,t5.countryprefix,t1.dialprefix,t1.rateinitial&column_name=Destination,Country,Prefix,Rate/Min&field_type=,,money&".$_SERVER['QUERY_STRING']); ("http://localhost/A2Billing_UI/api/display_ratecard.php?key=0951aa29a67836b860b0865bc495225c&page_url=localhost/index.php&field_to_display=t1.destination,t1.dialprefix,t1.rateinitial&column_name=Destination,Prefix,Rate/Min&field_type=,,money&".$_SERVER['QUERY_STRING']);3. QUERY STRING PARAMETERS EXPLANATION 1) Key is API Security Key. You must change it in order to ensure security for your API. you can change your security key in the /etc/asterisk/a2billing.conf in the webui section. 2) page_url is the URL of your Page in which you are calling this API. 3) field_to_display is List of Fields, that you want to display in your page. 4) column_name is the List of Names of Columns. 5) css_url This Field help you to set the CSS for the Information that this API will Display. 6) ratecardid- It is the ID of the Rate Card if you want to dispaly only a sigle ratecard. 7) nb_display_lines- It is maximum lines per page. 8) filter (coutryname,prefix) 9) prefix_select- i.e 32 only prefix start by 32 10) currency_select currency code i.e USD 11) merge_form (0 or 1) 1 for merge form search and 1 seaparated search form by default 0 12) fullhtmlpage (0 or 1) 1 to show the html header in the page if not we will advice to add the css in your html page to display nicely the ratecard : add : <link href="http://a2billingserver/api/api_ratecard.css" rel="stylesheet" type="text/css">4. TROUBLESHOOTING a) Error: need to define page_url!!!. this means that you dont have defined the page_url variable b) Error: page_url need to start by http:// or https://. This Error means that your page_url variable is not containing the URL starting with http or https. Your page_url must look like http://myhomepage/test.php c) 400 Bad Request. That mean that your have invalid Key. Please make sure that you are providing correct key. d) Ensure that the htaccess in "api" directory will authorize your server IP
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -