Skip to content

Commit 39b0217

Browse files
feat: asn-ixs
1 parent dfa7f16 commit 39b0217

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "syntaxphoenix/bgpview-php",
3-
"version": "0.0.4",
3+
"version": "0.0.5",
44
"type": "framework",
55
"autoload": {
66
"psr-4": {

src/BGPView.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ public function getAsnDownstreams(int $asNumber): ?array
6464
return $this->getDataByApi('asn/' . $asNumber . '/downstreams')['data'];
6565
}
6666

67+
public function getAsnIxs(int $asNumber): ?array
68+
{
69+
return $this->getDataByApi('asn/' . $asNumber . '/ixs')['data'];
70+
}
71+
6772
public function getPrefix(string $ipAddress, int $cidr): ?array
6873
{
6974
return $this->getDataByApi('prefix/' . $ipAddress . '/' . $cidr)['data'];

0 commit comments

Comments
 (0)