1 | <?php |
||||
2 | /** |
||||
3 | * @author Fabian Hanisch |
||||
4 | * @since 16.07.2017 02:55 |
||||
5 | * @version 1.0 |
||||
6 | */ |
||||
7 | |||||
8 | require_once(__DIR__ . '/../vendor/autoload.php'); |
||||
9 | |||||
10 | try { |
||||
11 | $api = new \HanischIt\KrakenApi\KrakenApi("Your-API-Key", "Your-API-Sign"); |
||||
12 | |||||
13 | $serverTimeResponse = $api->getServerTime(); |
||||
14 | |||||
15 | echo "UnixTime: " . $serverTimeResponse->getUnixTime() . "\n"; |
||||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||||
16 | echo "rfc1123: " . $serverTimeResponse->getRfc1123(); |
||||
0 ignored issues
–
show
The method
getRfc1123() does not exist on HanischIt\KrakenApi\Model\ResponseInterface . It seems like you code against a sub-type of HanischIt\KrakenApi\Model\ResponseInterface such as HanischIt\KrakenApi\Call...Time\ServerTimeResponse .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
17 | } catch (Exception $e) { |
||||
18 | echo $e->getMessage(); |
||||
19 | } |
||||
20 |