当前位置: 首页>>代码示例>>PHP>>正文


PHP Api::request方法代码示例

本文整理汇总了PHP中Api::request方法的典型用法代码示例。如果您正苦于以下问题:PHP Api::request方法的具体用法?PHP Api::request怎么用?PHP Api::request使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Api的用法示例。


在下文中一共展示了Api::request方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getRanking

 /**
  * @return Ranking[]
  * @throws InvalidResponseException
  */
 public function getRanking()
 {
     $response = $this->api->request('competities/' . $this->TeamId . '/' . $this->District . '/' . $this->CompId . '/' . $this->ClassId . '/' . $this->PouleId . '/ranking');
     $ranking = array();
     foreach ($response['List'] as $item) {
         $ranking[] = $this->api->map($item, new Ranking());
     }
     return $ranking;
 }
开发者ID:juukie,项目名称:php-knvb-dataservice-api,代码行数:13,代码来源:Competition.php

示例2: getCompetitions

 /**
  * @param  string   $comptype Van welke competitie type moet de stand worden terug gegeven
  * @return Competition[]
  * @throws InvalidResponseException
  */
 public function getCompetitions($comptype = null)
 {
     $params = [];
     if ($comptype !== null) {
         $params['comptype'] = $comptype;
     }
     $response = $this->api->request('competities/' . $this->getId(), $params);
     $competitions = array();
     foreach ($response['List'] as $item) {
         $competition = new Competition($this->api);
         $competition->TeamId = $this->getId();
         $competitions[] = $this->api->map($item, $competition);
     }
     return $competitions;
 }
开发者ID:juukie,项目名称:php-knvb-dataservice-api,代码行数:20,代码来源:Team.php

示例3: request

 function request()
 {
     DB::escapePost();
     $_SESSION['iuser']['token'] = Api::getToken();
     $error = Api::request();
     print "Action REQUEST<br> Try connecting to 4myself...<BR><BR>";
     if ($error) {
         print "Error: insufficient funds";
     }
     /*if($_POST){
     			
     		}else{
     			$this->redirect(Funcs::$conf['settings']['source']);
     		}*/
 }
开发者ID:sov-20-07,项目名称:billing,代码行数:15,代码来源:ApiController.php

示例4: syncTribo

 private function syncTribo()
 {
     $data = array("programaId" => $this->programaId, "capitulo" => $this->capitulo, "titulo" => $this->titulo, "id" => $this->id);
     Api::request("programas/syncParrillas", $data);
 }
开发者ID:flafuente,项目名称:parrillas,代码行数:5,代码来源:Entrada.php

示例5: load

 private function load()
 {
     if ($this->response === NULL) {
         $this->response = $this->api->request($this->request);
     }
 }
开发者ID:runt18,项目名称:github-api-1,代码行数:6,代码来源:Paginator.php

示例6: getBanner

 /**
  * @return Banner
  */
 public function getBanner()
 {
     $response = $this->api->request('banners');
     return $this->api->map($response['List'], new Banner());
 }
开发者ID:juukie,项目名称:php-knvb-dataservice-api,代码行数:8,代码来源:Club.php

示例7: ajaxProgramas

 public function ajaxProgramas()
 {
     $res = Api::request("programas/entradas", array("q" => $_REQUEST["q"]));
     $this->ajax(array("programas" => $res->programas));
 }
开发者ID:flafuente,项目名称:parrillas,代码行数:5,代码来源:entradas.php


注:本文中的Api::request方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。