allyans3 / dmarket-auth-api
DMarket Unofficial Auth API
Installs: 1 505
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- ext-curl: *
- ext-json: *
- nesbot/carbon: ^2.43
- paragonie/sodium_compat: ^1.14
Requires (Dev)
- symfony/var-dumper: ^6.3
README
Installation
With composer
Run this text in console to install this package:
composer require allyans3/dmarket-auth-api
This package currently offers 23 API calls you can make to DMarket.
Creating new object
//Replace with your own keys $publicKey = "8397eb8e7f88032eb13dca99a11350b05d290c896a96afd60b119184b1b443c9"; $secretKey = "2de2824ac1752d0ed3c66abc67bec2db553022aa718287a1e773e104303031208397eb8e7f88032eb13dca99a11350b05d290c896a96afd60b119184b1b443c9"; $api = new DMarketAuthApi($publicKey, $secretKey);
Methods
// Account $api->getUserProfile(array $proxy = []) $api->getUserBalance(array $proxy = []) // Sell Items $api->depositAssets(array $postParams, array $proxy = []) $api->getDepositStatus(string $depositId, array $proxy = []) $api->getUserOffers(array $queries = [], array $proxy = []) $api->createUserOffers(array $postParams, array $proxy = []) $api->editUserOffers(array $postParams, array $proxy = []) $api->getMarketItems(array $queries, array $proxy = []) $api->deleteOffers(array $postParams, array $proxy = []) // Inventory/items $api->getUserInventory(array $queries = [], array $proxy = []) $api->syncUserInventory(array $postParams, array $proxy = []) $api->withdrawAssets(array $postParams, array $proxy = []) $api->getUserItems(array $queries, array $proxy = []) $api->getCustomizedFees(array $queries, array $proxy = []) // Sold user items $api->getClosedUserOffers(array $queries = [], array $proxy = []) // Buy items $api->getOffersByTitle(array $queries, array $proxy = []) $api->getAggregatedPrices(array $queries, array $proxy = []) $api->getUserTargets(array $queries = [], array $proxy = []) $api->getClosedUserTargets(array $queries = [], array $proxy = []) $api->createUserTargets(array $postParams, array $proxy = []) $api->deleteUserTargets(array $postParams, array $proxy = []) $api->buyOffers(array $postParams, array $proxy = []) // Aggregator $api->getLastSales(array $queries, array $proxy = [])