基于C#的漫画书接口调用代码实例 .doc基于c#的漫画书接口调用代码实例
代码描述:基于C#的漫画书接口调川代码实例
代码平台:聚合数据
using System;
using ;
using ;
using ;
using ;
using ;
using ;
using ;
using ;
//
//漫画书调用示例代码一聚合数据
// 在线接口文档:s/163
// 代码中]son Object 类卜•载地址:http://download. /download/gc m320 60211556 65/7458439 //
n amespace Con soleAPI
{
class Progra m {
static void Main(strin g[] args)
{
string appkey = "*******************"; //配置您申请的 appkey
//
string urll ="http://jap i. /co mic/category
var param etersl =new string, stri ng>();
param ("keyn, appkey );//你申请的 key
string resul tl = sendPos t(urllJ para metersl, "ge t")
ZJsonObj ect newObjl =new ZJsonOb ject(resultl );
String err orCodel = ne wObjl["error _code"] .Valu e;
if (error Codel ==,,0,1)
{
Debug. WriteLine ("成功•’);
Debu (newObjl);
}
el se {
//Deb ("失败");
D ne(newObjl["error_coden] .Value+" : "+n ewObj l[Hreas on"] .Value);
}
//
string url2 ="h ttp://japi. j /comic /book";
var parameters2 =new Dictio string, string>();
("key") a ppkey);//你申请的 key
paramete (Hnam e" , ••"); //漫画名称
paramete ("typ e" , •"’); //漫画类别
paramete ("ski p" , ••"); //跳过的数量
paramet ("fi nish" , "");//0 代表米完姑,1 代表已完姑,默
认所有
st ring result2 = sendPost(url2> parame ters2/'get");
DsonOb
基于C#的漫画书接口调用代码实例 来自淘豆网m.daumloan.com转载请标明出处.