接口类型定义
合集下载
相关主题
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
1.
1.1
clientid clientid
clientid 10 clientid
1. 2. 3. 40 10 clientid UTF-8
1.2
1.2.1 bindAliasclientid
clientid
clientid
bindAlias(APPID,ALIAS,CID)
APPID ALIAS CID
setTag();
//
ClientId
function setTag(){ $igt = new IGeTui(HOST,APPKEY,MASTERSECRET); $tagList = array('',' ','English'); $rep = $igt->setClientTag(APPID,CID,$tagList); var_dump($rep); echo ("<br><br>"); } ?>
function aliasBind(){ $igt = new IGeTui(HOST,APPKEY,MASTERSECRET); $rep = $igt->bindAlias(APPID,ALIAS,CID); var_dump($rep); echo("<br><br>"); } ?>
1.2.2 bindAliasBatchclientid 10
2.3.2 getUserTags-
tag
getUserTags(appId, cid)
appId cid
String String
id id(clientid)
<?php // 2014 11 11 // ClientId header("Content-Type: text/html; charset=utf-8"); require_once(dirname(__FILE__) . '/' . 'IGt.Push.php'); // "PHP SDK " " " define('APPKEY',''); define('APPID',''); define('MASTERSECRET',''); define('CID',' id'); define('HOST','http://sdk.open.api.igexin.com/apiex.htm');
function aliasBatch(){ $igt = new IGeTui(HOST,APPKEY,MASTERSECRET); $target = new IGtTarget(); $target->set_clientId(CID); $target->set_alias(ALIAS); $targetList[] = $target; // // // // $target1 = new IGtTarget(); $target1->set_clientId(CID2); $target1->set_alias(ALIAS); $targetList[] = $target1; $rep = $igt->bindAliasBatch(APPID,$targetList); var_dump($rep); echo("<br><br>"); } // ?> cid true
clientid
clientid clientid
bindAliasBatch(APPID,$targetList)
APPID targetList
String Array cid
id
<?php // 2014 11 11 // ClientId header("Content-Type: text/html; charset=utf-8"); require_once(dirname(__FILE__) . '/' . 'IGt.Push.php'); // "PHP SDK " " " define('APPKEY',''); define('APPID',''); define('MASTERSECRET',''); define('CID',' id'); define('ALIAS',' '); define('HOST','http://sdk.open.api.igexin.com/apiex.htm'); //define('CID2',' clientid'); aliasBatch(); // clientid
function aliasUnBind(){ $igt = new IGeTui(HOST,APPKEY,MASTERSECRET); $rep = $igt->unBindAlias(APPID,ALIAS,CID); var_dump($rep); echo("<br><br>"); } ?>
1.2.6 unBindAliasAll-
clientid
unBindAliasAll(APPID,ALIAS);
APPID ALIAS
String String
id
<?php // 2014 11 11 // ClientId header("Content-Type: text/html; charset=utf-8"); require_once(dirname(__FILE__) . '/' . 'IGt.Push.php'); // "PHP SDK " " " define('APPKEY',''); define('APPID',''); define('MASTERSECRET',''); define('CID',' id'); define('ALIAS',' '); define('HOST','http://sdk.open.api.igexin.com/apiex.htm'); //define('CID2',' clientid'); aliasUnBindAll(); // ClientId
function queryAlias(){ $igt = new IGeTui(HOST,APPKEY,MASTERSECRET); $rep = $igt->queryAlias(APPID,CID); var_dump($rep); echo("<br><br>"); } ?>
1.2.5 unBindAlias-
String String String id
id
<?php // 2014 11 11 // ClientId header("Content-Type: text/html; charset=utf-8"); require_once(dirname(__FILE__) . '/' . 'IGt.Push.php'); // "PHP SDK " " " define('APPKEY',''); define('APPID',''); define('MASTERSECRET',''); define('CID',' id'); define('ALIAS',' '); define('HOST','http://sdk.open.api.igexin.com/apiex.htm'); aliasBind(); //clientid
clientid
unBindAlias(APPID,ALIAS,CID)
APPID ALIAS CID
String String String
id
id(clientid)
<?php // 2014 11 11 // ClientId header("Content-Type: text/html; charset=utf-8"); require_once(dirname(__FILE__) . '/' . 'IGt.Push.php'); // "PHP SDK " " " define('APPKEY',''); define('APPID',''); define('MASTERSECRET',''); define('CID',' id'); define('ALIAS',' '); define('HOST','http://sdk.open.api.igexin.com/apiex.htm'); //define('CID2',' clientid'); aliasUnBind(); // ClientId
1.2.3 queryClientId-
clientid
queryClientId(APPID,ALIAS)
APPID ALIAS
String String
id
<?php // 2014 11 11 // ClientId header("Content-Type: text/html; charset=utf-8"); require_once(dirname(__FILE__) . '/' . 'IGt.Push.php'); // "PHP SDK " " " define('APPKEY',''); define('APPID',''); define('MASTERSECRET',''); define('CID',' id'); define('ALIAS',' '); define('HOST','http://sdk.open.api.igexin.com/apiex.htm'); //define('CID2',' clientid'); queryCID(); // ClientId
function aliasUnBindAll(){ $igt = new IGeTui(HOST,APPKEY,MASTERSECRET); $rep = $igt->unBindAliasAll(APPID,ALIAS); var_dump($rep); echo("<br><br>"); } ?>
clientid
queryAlias(APPID,CID)
APPID CID
String String id
id
<?php // 2014 11 11 // ClientId header("Content-Type: text/html; charset=utf-8"); require_once(dirname(__FILE__) . '/' . 'IGt.Push.php'); // "PHP SDK " " " define('APPKEY',''); define('APPID',''); define('MASTERSECRET',''); define('CID',' id'); define('ALIAS',' '); define('HOST','http://sdk.open.api.igexin.com/apiex.htm'); //define('CID2',' clientid'); queryAlias(); // CID
2.
2.1
tag app clientid
tag
2.2
1
“movie”
tag
movie
2
2.3
2.3.1 setClientTagtag
setClientTag(APPID,CID,$tagList)
APPID CID $tagList
String String Array tag
id id(clientid)
<?php // 2014 11 11 // ClientId header("Content-Type: text/html; charset=utf-8"); require_once(dirname(__FILE__) . '/' . 'IHale Waihona Puke Baidut.Push.php'); // "PHP SDK " " " define('APPKEY',''); define('APPID',''); define('MASTERSECRET',''); define('CID',' id'); define('HOST','http://sdk.open.api.igexin.com/apiex.htm');
function queryCID(){ $igt = new IGeTui(HOST,APPKEY,MASTERSECRET); $rep = $igt->queryClientId(APPID,ALIAS); var_dump($rep); echo("<br><br>"); } ?>
1.2.4 queryAlias-
1.1
clientid clientid
clientid 10 clientid
1. 2. 3. 40 10 clientid UTF-8
1.2
1.2.1 bindAliasclientid
clientid
clientid
bindAlias(APPID,ALIAS,CID)
APPID ALIAS CID
setTag();
//
ClientId
function setTag(){ $igt = new IGeTui(HOST,APPKEY,MASTERSECRET); $tagList = array('',' ','English'); $rep = $igt->setClientTag(APPID,CID,$tagList); var_dump($rep); echo ("<br><br>"); } ?>
function aliasBind(){ $igt = new IGeTui(HOST,APPKEY,MASTERSECRET); $rep = $igt->bindAlias(APPID,ALIAS,CID); var_dump($rep); echo("<br><br>"); } ?>
1.2.2 bindAliasBatchclientid 10
2.3.2 getUserTags-
tag
getUserTags(appId, cid)
appId cid
String String
id id(clientid)
<?php // 2014 11 11 // ClientId header("Content-Type: text/html; charset=utf-8"); require_once(dirname(__FILE__) . '/' . 'IGt.Push.php'); // "PHP SDK " " " define('APPKEY',''); define('APPID',''); define('MASTERSECRET',''); define('CID',' id'); define('HOST','http://sdk.open.api.igexin.com/apiex.htm');
function aliasBatch(){ $igt = new IGeTui(HOST,APPKEY,MASTERSECRET); $target = new IGtTarget(); $target->set_clientId(CID); $target->set_alias(ALIAS); $targetList[] = $target; // // // // $target1 = new IGtTarget(); $target1->set_clientId(CID2); $target1->set_alias(ALIAS); $targetList[] = $target1; $rep = $igt->bindAliasBatch(APPID,$targetList); var_dump($rep); echo("<br><br>"); } // ?> cid true
clientid
clientid clientid
bindAliasBatch(APPID,$targetList)
APPID targetList
String Array cid
id
<?php // 2014 11 11 // ClientId header("Content-Type: text/html; charset=utf-8"); require_once(dirname(__FILE__) . '/' . 'IGt.Push.php'); // "PHP SDK " " " define('APPKEY',''); define('APPID',''); define('MASTERSECRET',''); define('CID',' id'); define('ALIAS',' '); define('HOST','http://sdk.open.api.igexin.com/apiex.htm'); //define('CID2',' clientid'); aliasBatch(); // clientid
function aliasUnBind(){ $igt = new IGeTui(HOST,APPKEY,MASTERSECRET); $rep = $igt->unBindAlias(APPID,ALIAS,CID); var_dump($rep); echo("<br><br>"); } ?>
1.2.6 unBindAliasAll-
clientid
unBindAliasAll(APPID,ALIAS);
APPID ALIAS
String String
id
<?php // 2014 11 11 // ClientId header("Content-Type: text/html; charset=utf-8"); require_once(dirname(__FILE__) . '/' . 'IGt.Push.php'); // "PHP SDK " " " define('APPKEY',''); define('APPID',''); define('MASTERSECRET',''); define('CID',' id'); define('ALIAS',' '); define('HOST','http://sdk.open.api.igexin.com/apiex.htm'); //define('CID2',' clientid'); aliasUnBindAll(); // ClientId
function queryAlias(){ $igt = new IGeTui(HOST,APPKEY,MASTERSECRET); $rep = $igt->queryAlias(APPID,CID); var_dump($rep); echo("<br><br>"); } ?>
1.2.5 unBindAlias-
String String String id
id
<?php // 2014 11 11 // ClientId header("Content-Type: text/html; charset=utf-8"); require_once(dirname(__FILE__) . '/' . 'IGt.Push.php'); // "PHP SDK " " " define('APPKEY',''); define('APPID',''); define('MASTERSECRET',''); define('CID',' id'); define('ALIAS',' '); define('HOST','http://sdk.open.api.igexin.com/apiex.htm'); aliasBind(); //clientid
clientid
unBindAlias(APPID,ALIAS,CID)
APPID ALIAS CID
String String String
id
id(clientid)
<?php // 2014 11 11 // ClientId header("Content-Type: text/html; charset=utf-8"); require_once(dirname(__FILE__) . '/' . 'IGt.Push.php'); // "PHP SDK " " " define('APPKEY',''); define('APPID',''); define('MASTERSECRET',''); define('CID',' id'); define('ALIAS',' '); define('HOST','http://sdk.open.api.igexin.com/apiex.htm'); //define('CID2',' clientid'); aliasUnBind(); // ClientId
1.2.3 queryClientId-
clientid
queryClientId(APPID,ALIAS)
APPID ALIAS
String String
id
<?php // 2014 11 11 // ClientId header("Content-Type: text/html; charset=utf-8"); require_once(dirname(__FILE__) . '/' . 'IGt.Push.php'); // "PHP SDK " " " define('APPKEY',''); define('APPID',''); define('MASTERSECRET',''); define('CID',' id'); define('ALIAS',' '); define('HOST','http://sdk.open.api.igexin.com/apiex.htm'); //define('CID2',' clientid'); queryCID(); // ClientId
function aliasUnBindAll(){ $igt = new IGeTui(HOST,APPKEY,MASTERSECRET); $rep = $igt->unBindAliasAll(APPID,ALIAS); var_dump($rep); echo("<br><br>"); } ?>
clientid
queryAlias(APPID,CID)
APPID CID
String String id
id
<?php // 2014 11 11 // ClientId header("Content-Type: text/html; charset=utf-8"); require_once(dirname(__FILE__) . '/' . 'IGt.Push.php'); // "PHP SDK " " " define('APPKEY',''); define('APPID',''); define('MASTERSECRET',''); define('CID',' id'); define('ALIAS',' '); define('HOST','http://sdk.open.api.igexin.com/apiex.htm'); //define('CID2',' clientid'); queryAlias(); // CID
2.
2.1
tag app clientid
tag
2.2
1
“movie”
tag
movie
2
2.3
2.3.1 setClientTagtag
setClientTag(APPID,CID,$tagList)
APPID CID $tagList
String String Array tag
id id(clientid)
<?php // 2014 11 11 // ClientId header("Content-Type: text/html; charset=utf-8"); require_once(dirname(__FILE__) . '/' . 'IHale Waihona Puke Baidut.Push.php'); // "PHP SDK " " " define('APPKEY',''); define('APPID',''); define('MASTERSECRET',''); define('CID',' id'); define('HOST','http://sdk.open.api.igexin.com/apiex.htm');
function queryCID(){ $igt = new IGeTui(HOST,APPKEY,MASTERSECRET); $rep = $igt->queryClientId(APPID,ALIAS); var_dump($rep); echo("<br><br>"); } ?>
1.2.4 queryAlias-