@@ -1699,20 +1699,53 @@ class MarketApi {
1699
1699
* -------------------------------------
1700
1700
*/
1701
1701
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 } ;
1703
1711
1712
+ return this . callV2MethodWithKey ( 'search-item-by-hash-name' , gotOptions , params ) ;
1704
1713
}
1705
1714
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 } ;
1707
1724
1725
+ return this . callV2MethodWithKey ( 'search-item-by-hash-name-specific' , gotOptions , params ) ;
1708
1726
}
1709
1727
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 } ;
1711
1737
1738
+ return this . callV2MethodWithKey ( 'search-list-items-by-hash-name-all' , gotOptions , params ) ;
1712
1739
}
1713
1740
1741
+ /**
1742
+ * Get item sales history by class and instance
1743
+ *
1744
+ * @param {Object } [gotOptions]
1745
+ * @return {Promise }
1746
+ */
1714
1747
searchV2ItemSellHistoryAll ( gotOptions = null ) {
1715
-
1748
+ return this . callV2MethodWithKey ( 'get-list-items-info' , gotOptions ) ;
1716
1749
}
1717
1750
1718
1751
/**
0 commit comments