forked from lxjwolf/V3-Open-API-SDK
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
197 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
如何使用? | ||
|
||
提示:请确保 php 版本在7.2以上 | ||
环境要求:请确保 php 版本在7.2以上,并安装了 composer 命令。 | ||
|
||
第一步:安装依赖 | ||
第一步:进入到项目根目录,安装依赖 | ||
|
||
1.1 安装依赖composer包 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
/** | ||
* Created by PhpStorm. | ||
* User: hengliu | ||
* Date: 2020/4/21 | ||
* Time: 11:20 PM | ||
*/ | ||
|
||
namespace okv3; | ||
|
||
class OthersAPI extends Utils | ||
{ | ||
|
||
# | ||
const SERVER_TIME = '/api/general/v3/time'; | ||
const CONSTITUENTS = '/api/index/v3/'; | ||
const STATUS = '/api/system/v3/status'; | ||
|
||
// | ||
public function getServerTime() | ||
{ | ||
return $this->request(self::SERVER_TIME,'','GET'); | ||
} | ||
|
||
// | ||
public function getConstituents($instrument_id) | ||
{ | ||
return $this->request(self::CONSTITUENTS . $instrument_id . '/constituents',[],'GET'); | ||
} | ||
|
||
// | ||
public function getStatus($status) | ||
{ | ||
$params = []; | ||
|
||
if ("status") $params['status'] = $status; | ||
|
||
return $this->request(self::STATUS,$params,'GET'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.