Download the PHP package sofwar/trade-opskins-api without Composer
On this page you can find all versions of the php package sofwar/trade-opskins-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sofwar/trade-opskins-api
More information about sofwar/trade-opskins-api
Files in sofwar/trade-opskins-api
Package trade-opskins-api
Short Description A Trade Opskins API client for PHP.
License MIT
Homepage https://github.com/sofwar/trade-opskins-api
Informations about the package trade-opskins-api
Opskins Trade PHP Library
This is the unofficial client library for the Opskins Trade API. We provide an intuitive, stable interface to integrate Opskins Trade API into your PHP project.
Installation
Install the library using Composer. Please read the Composer Documentation if you are unfamiliar with Composer or dependency managers in general.
Access Token
You can use both a user access token and api key
Initialization
Also you can initialize Opskins with the default access token
OR
Authorization
The library provides the authorization flows for user based on OAuth 2.0 protocol implementation in Opskins API. Please read the full documentation before you start.
Authorization Code Flow
For getting user access key use following command:
After successful authorization user's browser will be redirected to the specified redirect_uri. Meanwhile the code will be sent as a GET parameter to the specified address:
Then use this method to get the access token:
API Request
You can find the full list of Opskins Trade API methods here.
Examples
All examples can be found here
TODO
- [ ] ICase
- [ ] GetCaseSchema
- [ ] GetCaseOdds
- [ ] GetMinimumOpenVolume
- [ ] OpenWithKeys
- [ ] ICaseSite
- [ ] GetKeyCount
- [ ] GetTradeStatus
- [ ] SendKeyRequest
- [ ] UpdateCommissionSettings
- [ ] IEthereum
- [ ] GetContractAddress
- [X] IItem
- [X] GetAllItems
- [X] GetItemsById
- [X] WithdrawToOpskins
- [X] GetItemDefinitions
- [X] GetRarityStats
- [X] InstantSellRecentItems
- [X] ITest
- [X] Test
- [X] TestAuthed
- [X] TestBody
- [X] ITrade
- [X] AcceptOffer
- [X] CancelOffer
- [X] GetApps
- [X] GetOffer
- [X] GetOffers
- [X] GetTradeURL
- [X] GetUserInventory
- [X] GetUserInventoryFromSteamId
- [X] RegenerateTradeUrl
- [X] SendOffer
- [X] SendOfferToSteamId
- [X] IUser
- [X] CreateVCaseUser
- [X] GetInventory
- [X] GetProfile
- [X] UpdateProfile
- [X] UserReports