@@ -1699,20 +1699,53 @@ class MarketApi {
16991699 * -------------------------------------
17001700 */
17011701
1702- searchV2ItemByHash ( gotOptions = null ) {
1702+ /**
1703+ * Option to request a single item
1704+ *
1705+ * @param {String } item
1706+ * @param {Object } [gotOptions]
1707+ * @return {Promise }
1708+ */
1709+ searchV2ItemByHash ( item , gotOptions = null ) {
1710+ let params = { market_hash_name : item } ;
17031711
1712+ return this . callV2MethodWithKey ( 'search-item-by-hash-name' , gotOptions , params ) ;
17041713 }
17051714
1706- searchV2ItemByHashSpecific ( gotOptions = null ) {
1715+ /**
1716+ * Option to request a single item
1717+ *
1718+ * @param {String } item
1719+ * @param {Object } [gotOptions]
1720+ * @return {Promise }
1721+ */
1722+ searchV2ItemByHashSpecific ( item , gotOptions = null ) {
1723+ let params = { market_hash_name : item } ;
17071724
1725+ return this . callV2MethodWithKey ( 'search-item-by-hash-name-specific' , gotOptions , params ) ;
17081726 }
17091727
1710- searchV2ItemByHashAll ( gotOptions = null ) {
1728+ /**
1729+ * Option to request a multiple items
1730+ *
1731+ * @param {Array<String> } items
1732+ * @param {Object } [gotOptions]
1733+ * @return {Promise }
1734+ */
1735+ searchV2ItemByHashAll ( items , gotOptions = null ) {
1736+ let params = { list_hash_name : items } ;
17111737
1738+ return this . callV2MethodWithKey ( 'search-list-items-by-hash-name-all' , gotOptions , params ) ;
17121739 }
17131740
1741+ /**
1742+ * Get item sales history by class and instance
1743+ *
1744+ * @param {Object } [gotOptions]
1745+ * @return {Promise }
1746+ */
17141747 searchV2ItemSellHistoryAll ( gotOptions = null ) {
1715-
1748+ return this . callV2MethodWithKey ( 'get-list-items-info' , gotOptions ) ;
17161749 }
17171750
17181751 /**
0 commit comments