Skip to content
This repository was archived by the owner on Oct 25, 2023. It is now read-only.

Commit 18b7084

Browse files
author
David Albrecht
committed
added getInventory method to Service.php
1 parent 1988290 commit 18b7084

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

lib/Discogs/Service.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,17 @@ public function getLabel($labelId)
169169
{
170170
return $this->call(sprintf('/labels/%d', $labelId));
171171
}
172+
/**
173+
* Implements API users inventory method
174+
*
175+
* @param string $discogsUsername
176+
* @return mixed
177+
* @throws NoResultException
178+
*/
179+
public function getInventory($discogsUsername)
180+
{
181+
return $this->call(sprintf('/users/%s/inventory', $discogsUsername));
182+
}
172183

173184
/**
174185
* @param CacherInterface $cacher

0 commit comments

Comments
 (0)