Download the PHP package michaelbutler/phposh without Composer
On this page you can find all versions of the php package michaelbutler/phposh. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download michaelbutler/phposh
More information about michaelbutler/phposh
Files in michaelbutler/phposh
Package phposh
Short Description Unofficial PHP SDK for interacting with Poshmark
License MIT
Homepage https://github.com/michaelbutler/phposh
Informations about the package phposh
PHPosh
PHP composer package to interact with Poshmark's website and APIs. Currently this uses your browser cookie information to do this.
Requirements
php >= 7.1
Supported API
- getItems
- getItem
- getOrderSummaries
- getOrderDetail
- updateItem
Usage:
Add the composer package to your project.
Usage & Examples
Setup the service object that is used in all method calls:
Then you can use that $pmService
object to make further calls to get or change data; read on.
getItems
Retrieve all active (unsold) items in your closet:
List items for another user:
getItem
Retrieve a single item by its identifier (id).
getOrderSummaries
Retrieve a list of your order summaries:
Note that an "Order Summary" does not include full details about an order. It includes:
- Order title
- Sale price
- Size (single item orders only)
- Buyer username
- Order status
- Thumbnail (of first item only)
getOrderDetail
To get all details about an order:
updateItem
Edit and post changes (e.g. listing price or item description) to an item's data:
Contributing
This is a very early version of this library, help is welcome.
Things that are needed:
- More Poshmark functionality
- Better authentication mechanism
License
MIT
All versions of phposh with dependencies
ext-json Version *
guzzlehttp/guzzle Version ~6.0
sndsgd/util Version ^2.1
symfony/dom-crawler Version ~4.0|~5.0
symfony/css-selector Version ~4.0|~5.0
thecodingmachine/safe Version ^0.1|^1.0