Skip to content

Latest commit

 

History

26 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unofficial DMarket Auth API

Installation

With composer

Run this text in console to install this package:

composer require allyans3/dmarket-auth-api

This package currently offers 38 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

// Used to get detailed response
$api->detailed()->getUserProfile()

// 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 = []) ️️❗️// Deprecated old endpoint
$api->getUserOffersV2(array $queries = [], array $proxy = []) ️️🔸// New endpoint
$api->createBatchOffers(array $postParams, array $proxy = []) ️️🔸// New endpoint
$api->updateBatchOffers(array $postParams, array $proxy = []) ️️🔸// New endpoint
$api->deleteBatchOffers(array $postParams, array $proxy = []) ️️🔸// New endpoint
$api->createUserOffers(array $postParams, array $proxy = []) ️️❗️// Deprecated old endpoint
$api->editUserOffers(array $postParams, array $proxy = []) ️️❗️// Deprecated old endpoint
$api->deleteOffers(array $postParams, array $proxy = []) ️️❗️// Deprecated old endpoint
$api->getMarketItems(array $queries, array $proxy = []) ️️❗️// Deprecated old endpoint

// Inventory/items
$api->getUserInventory(array $queries = [], array $proxy = []) ️❗️// Deprecated old endpoint
$api->getUserInventoryV2(array $queries = [], array $proxy = []) ️️🔸// New endpoint
$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 = []) ️️❗️// Deprecated old endpoint
$api->getTargetsByTitle(string $gameId, string $title, array $proxy = [])
$api->getAggregatedPrices(array $queries, array $proxy = [])
$api->getAggregatedPricesV2(array $postParams, array $proxy = []) ️️🔸// New endpoint
$api->getUserTargets(array $queries = [], array $proxy = []) ️️❗️// Deprecated old endpoint
$api->getUserTargetsV2(array $queries = [], array $proxy = []) ️️🔸// New endpoint
$api->getClosedUserTargets(array $queries = [], array $proxy = [])
$api->createUserTargets(array $postParams, array $proxy = [])
$api->deleteUserTargets(array $postParams, array $proxy = [])
$api->getMarketplaceOffers(array $postParams, array $proxy = []) ️️🔸// New endpoint
$api->buyOffers(array $patchParams, array $proxy = [])

// Aggregator
$api->getLastSales(array $queries, array $proxy = [])

Documentation

https://docs.dmarket.com/v1/swagger.html

About

Unofficial DMarket Auth API

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages