PHP API接口测试小工具

时间:2024-01-05 11:09:38

前端时间给手机客户端做接口,当时弱爆了,写完API接口后,也不怎么测试,最后是等客户端调用的时候检验API的正确性。

后面利用PHP的curl实现Post请求,检验API接口的正确性;配合前面做的一个查看Apache错误日志的小工具,可将将错误一览无余;利用firebug或fiddler可以查看http通讯。

一、功能说明

样式 firebug中的http通信信息
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAtgAAAEgCAIAAAABmJO7AAAfaklEQVR4nO3dTY7bxoOH4bqFjqGFDtGn0IYn6I2QK4ReMDCy7wsEAQQEXBne2AcYzED4YzjBoA11EKh7epCeuBMDjgHOoiSyWF8qUpRKKr0PBEMt8aNIllg/FYuyqAEAACIRsQsAAACuF0EEAABEQxABAADREESSdf9p/e79h59+/oXHpT/evf9w/2kdu0IBwFEQRJK1fnh6fH6JXQqM4PH55df732OXAgCOgiCSrPXDU+wiYDQEEQCpIogkiyCSEoIIgFRdfBDZrMqJmJSrTV3XZZ5NptnmgKVVyyLLy7HKFhdBJCUEEQCpSiqIHKyaCUEQwRkiiABIFUFERRDBmSKIAEjVJQWRzaqciK1iWSkv2i/NFPPZbvI2qcjp75Z3zaJk8lAXvu/6ziabTrL8LptObNNvmteFELN54VmvstJOlqqWhVAmG7a7tCBSLYumMLKQu2JvC5zlpbLH2vWWeSZa2p7sbKO27fIYWZeJvggiAFJ1QUGk7a6olkXTIrqCSDGfCTGTaUW267Jd3DWf27fKPFMa18AekW1zqy5wN9cmm0664UMLOtv17ppn9U9LaWWRlJa+By2I3OWLm+lN1b5QzZS15NvyVzdKOlE2ajvjZlXebAtTzZTdru40ZZravUz0QxABkKqLCSJlnjVNtcoaRGSr3/Sa1HVdzGeOt9Tw0SOIqOGgu3C1b6OdsptXtLShRit94Wrq6qUbRDZ5flfMb5TlVHmez7a71Awi9WZVTtsAoQeRbv9KO1ftCyLqMtEPQQRAqi4miDSNvcYaRMzUUi0L+YqRFQYGEXUys2zqhR41iFivKNVK2jAjVLfrogc1i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jWAUAgItw0iCyfnh6fH455RrT8Pj88uv9733nYm8nY1gFAICLcOogcsrVpWRYEDlGSRAFQQRAqggil4EgcuUIIgBSRRC5DASRK0cQAZAqgshlIIhcOYIIgFQRRC4DQeTKEUQApIogchkIIleOIAIgVQSRy0AQuXIEEQCpIohcBoLIlSOIAEgVQeQyEESuHEEEQKoIIpehaYeEEEIEHTX2dkoIIgBSRRC5DASRK0cQAZAqgshl4NLMlSOIAEgVQeQy0CNy5QgiAFJFELkMBJErRxABkCqCyGXg0syVI4gASBVB5DIQRK4cQQRAqggil4EgcuUIIgBSRRC5DASRK0cQAZCqUweRx+eXU64xDY/PL8OCCHs7DcMqAABchJMGkdfXLw+Pf/AY8Hh9/cLevubHgAoAABfhpEEEAABARRABAADREEQAAEA0BBEAABANQQQAAERDEAEAANEQRAAAQDQEEQAAEA1BBAAAREMQAQAA0RBEAABANAQRAAAQDUEEAABEQxABAADREEQAAEA0BBEAABANQQQAAERDEAEAANEQRAAAQDQEEQAAEA1BBAAAREMQSdyPP/743Xff3Ub13Xff/fjjj5dV5nH13QMAcD0IIinL37x5+/btZrP5FtVms3n79m3+5s0FlXlcvfYAAFwVgkjKFovF09PT169f/4zq69evT09Pi8Xigso8rl57AACuCkEkZbe3t9++fYvdCv/5559/fvv27fb29rLKPK7wPQAAV4UgkrLb29t//vnn/87AP//8Ex5EzqTM4wrfAwBwVQgiKZON+ssBhBDaE+sErncbfYNIrxJqXJsQsqi+k4UvnCACAFYEkZTJRv0PLyGE/FelvWs+979o6htEQsocWIzAEoYss9lX2r8hCCIAYEUQSdnt7e3Xr1//dx8ZPtQ/tX+t02v8q/j69Wt4EAkss+dP/5Rmma1b5Nouc1+FCN8DAHBVCCIpk436cwAhhOffvTPu1TeIhCxTrt3K9a5aYGvJPZvjWpq20sP3AABcFYJIymSj/j8BhBCef+WT5rk54159g0jIMs0y+EtobpG6aR7a0qxLGHEPAMBVIYik7Pb29u+///5vLyHE3n/VKeUTSZvA4++//w4PIoFlNp9by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wWyIcAKy68OcHNCVwHtFmCA6SNmeHDCe1kH5g8/XB1CGdIxa72nW5k6XERcRsqfTUhNrVLEMmuCUlDL+Uo1qdG6VTn3TqOFNV9oX2iGLjeq4KtrOUrpe3IjgepDHTkTNMFEO5U8+Op9FeOHoKCAwL1bNjR70YgH4Y08l7vBnPA0/cWTdZ5168nJLNBOCUM3HPjQIAwPECGml00Z0AAACkSURBVAUAgEhAowAAEAloFAAAIgGNAgBAJKBRAACIBDQKAACRgEYBACAS0CgAAEQCGgUAgEhAowAAEAloFAAAIgGNAgBAJKBRAACIBDQKAACRgEYBACAS0CgAAEQCGgUAgEhAowAAEInBNAoAAEBiAI0CAABQgUYBACAS0CgAAEQCGgUAgEhAowAAEAloFAAAIgGNAgBAJKBRAACIBDQKAACR+H+luyTVsNcGMwAAAABJRU5ErkJggg==" alt="" />

1、client_name、client_version、api_debug和url这几个是每次都需要传的参数,除了url其他3个参数都可以根据实际情况修改,url是每个接口的地址

2、一行两个输入框的地方是可变参数,就是每个接口特有的需要传递的参数,参数名和参数值都可以自定义

3、点击添加参数可以增加那行可变参数

4、点击测试,将输入框中的数据发送到接口中

5、从接口端返回JSON格式的数据直接打印出来

二、html部分

<style type="text/css">
.mb20{margin-bottom:20px}
.title{display:inline-block;width:150px;text-align:right}
.w100{width:100px}
.mr10{margin-right:10px}
</style>
     <div class="mb20">
<label class="title">client_name:</label><input name="client_name" type="text" value="ANDROID"/>
</div>
<div class="mb20">
<label class="title">client_version:</label><input name="client_version" type="text" value="4.0"/>
</div>
<div class="mb20">
<label class="title">api_debug:</label><input name="api_debug" type="text" value=""/>
</div>
<div class="mb20">
<label class="title">url:</label><input name="client_url" type="text" value=""/>
</div>
<div class="mb20">
<label class="title"><input name="api_key" type="text" value="" class="w100"/>:</label><input name="api_value" type="text" value=""/>
</div>
<div class="mb20">
<label class="title"></label><input type="button" value="测试" id="submit" class="mr10"/><input type="button" value="添加参数" id="add"/>
</div>
<div id="message"></div>

这里做了点简单的修改,高度,宽度等。可变参数那行只用了name属性,分别是api_key和api_value,方便等下的克隆操作。

三、JavaScript部分

<script type="text/javascript">
$("#add").click(function() {
var $parent = $(this).parent();
var $clone = $parent.prev().clone();
$clone.find(':text').val('');
$clone.insertBefore($parent);
});
$("#submit").click(function() {
var api_keys = {
api_debug:$('input[name=api_debug]').val(),
client_url:$('input[name=client_url]').val()
};
$('input[name=api_key]').map(function() {
var key = $.trim($(this).val());
var value = $.trim($(this).next().val());
var repeat = {};
if(key != '') {
repeat[key] = value;
api_keys = $.extend(api_keys, repeat);
}
});
//提交到test文件中
$.post('test.php', api_keys, function(data) {
$("#message").html(data);
});
});
</script>

1、绑定两个按钮的click事件

2、$("#add")的click事件是在做克隆操作,克隆的同时将原先两个输入框中的内容清除

3、$('input[name=api_key]').map在做过滤无效可变参数的操作;有效的可变参数是指参数名和参数值都存在,只有都存在的才会发送过去

4、$("#submit")通过post给test.php,通过它来发送消息给接口

四、php部分

<?php
$root = 'http://api.1ddian.cn/';//可自定义域名
$url= $root . $_REQUEST['client_url'];
//用curl实现Post请求,可跨域
$ch = curl_init();
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POSTFIELDS, $_REQUEST); //传送参数
ob_start();
curl_exec($ch);
$result = ob_get_contents() ;
ob_end_clean();
print_r(json_decode($result)); //中文返回的是unicode编码,decode后方便阅读
?>

1、$root这个域名可以自定义

2、用curl实现Post请求,可跨域

3、中文返回的是unicode编码,decode后方便阅读

demo下载:

http://download.csdn.net/download/loneleaf1/7966101