Download the PHP package notfoundsam/yahoo-auction without Composer
On this page you can find all versions of the php package notfoundsam/yahoo-auction. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download notfoundsam/yahoo-auction
More information about notfoundsam/yahoo-auction
Files in notfoundsam/yahoo-auction
Package yahoo-auction
Short Description Yahoo auction bidder
License MIT
Homepage https://github.com/notfoundsam/yahoo-auction
Informations about the package yahoo-auction
Yahoo Auction Http library
Description
This library will help you to work with Yahoo auction. It makes requests to Yahoo auction like a normal browser. To use this library you must specify your username and password from Yahoo to login. In order not to make a login every time, after the first login, save your cookies so that the following requests will be in the same session. You can view your won lots and bidding lots. To get information about the lot or bid on the lot, you will need an application key.
Requirements
- php >= 5.4
- php-curl
- php-mbstring
- php-xml
Installation
Examples
Specify your credentials and create a new instance of Browser object.
If you don't have cookies yet try to login into Yahoo.
It throws LoginException or CaptchaException if something wrong.
If you already have cookies try to check it.
Use the next methods to get information about your auctions or bid on the lot.
In the end save your browser cookies to use it next time.
Debug
Since v1.1.0 you can use the debugging mode to test your application locally. Export YAHOO_AUC_ENV to your environment. Set it to production to use on production or other to use the debugging mode.
You can also enable or disable the debugging mode with the following method.
Pass the second argument with the path to the folder with your test files.
How to use the debugging mode
Replace test_user with something else to throw LoginException. It means the login failed.
Pass the following id n000000000 to throw PageNotfoundException. It means the auction not found.
Get an array of fake data from the first bidding page.
Get an array of fake IDs from the first won page.
Bid on the following lot e000000000 to throw AuctionEndedException. This auction has already ended.
Bid on the following lot x000000000 with price under 220 to throw BrowserException. It means your price is lower than the current price.
Bid on the following lot x000000000 with price between 220 and 999 to throw RebidException. It means the price of the lot has rose, and the bid failed.
Bid on the following lot x000000000 with price more than 999 for a successful bid.
About v1.3.x
Features
- Added xdebug to the docker container.
Updates
- Yahoo auction API was removed because Yahoo fully closed their API.
- If the page or lot not found it will throw
PageNotfoundException. - Check login with new request (Sometimes after login Yahoo shows different page).
- Remove unnecessary request options in
Browserconstructor.
Fixes
- The method
getAuctionImgsUrlreturned empty array.
Notes
- Field
$appIddon't need anymore, pass null instead to theBrowserconstructor. - Method
$browser->getAuctionInfoAsXml("...")returns shorted version of API result. Currently, available fields:AuctionID,AuctionItemUrl,Title,Seller->Id,Img,Price,TaxinPrice,StartTime,EndTime,Status.
Migration from v1.2.x
- Check available fields for
$browser->getAuctionInfoAsXml("...")in Notes.
All versions of yahoo-auction with dependencies
php Version >=5.6.0
kub-at/php-simple-html-dom-parser Version ^1.9
guzzlehttp/guzzle Version ^6.0 || ^7.0