You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$browser = new Browser($userName, $userPass, $appId, $cookieJar);
31
+
$browser = new Browser($userName, $userPass, null, $cookieJar);
33
32
```
34
33
If you don't have cookies yet try to login into Yahoo.
35
34
It throws `LoginException` or `CaptchaException` if something wrong.
@@ -79,86 +78,65 @@ Replace `test_user` with something else to throw `LoginException`. It means the
79
78
```
80
79
$userName = "not_test_user";
81
80
$userPass = "secret_password";
82
-
$appId = "app_id_random_hash";
83
81
84
-
$browser = new Browser($userName, $userPass, $appId, []);
82
+
$browser = new Browser($userName, $userPass, null, []);
85
83
$browser->debug($debug = true);
86
-
```
87
-
Replace `app_id_random_hash` with something else to throw `ApiException`.
88
-
Pass something other than the following format `x000000000` to throw `ApiException`. It means the auction ID is invalid.
89
-
Pass something in the following format `x000000000` like `x000000001` to throw `ApiException`. It means the auction not found.
84
+
```
85
+
Pass the following id `n000000000` to throw `PageNotfoundException`. It means the auction not found.
90
86
```
91
87
$userName = "test_user";
92
88
$userPass = "secret_password";
93
-
$appId = "not_app_id_random_hash";
94
89
95
-
$browser = new Browser($userName, $userPass, $appId, []);
90
+
$browser = new Browser($userName, $userPass, null, []);
96
91
$browser->debug($debug = true);
97
-
$browser->getAuctionInfoAsXml("xxxxxxx01");
98
-
$browser->getAuctionInfoAsXml("x000000001");
92
+
$browser->getAuctionInfoAsXml("n000000000");
99
93
```
100
94
Get an array of fake data from the first bidding page.
101
95
```
102
96
$userName = "test_user";
103
97
$userPass = "secret_password";
104
-
$appId = "app_id_random_hash";
105
98
106
-
$browser = new Browser($userName, $userPass, $appId, []);
99
+
$browser = new Browser($userName, $userPass, null, []);
107
100
$browser->debug($debug = true);
108
101
$browser->getBiddingLots(1);
109
102
```
110
103
Get an array of fake IDs from the first won page.
111
104
```
112
105
$userName = "test_user";
113
106
$userPass = "secret_password";
114
-
$appId = "app_id_random_hash";
115
107
116
-
$browser = new Browser($userName, $userPass, $appId, []);
108
+
$browser = new Browser($userName, $userPass, null, []);
117
109
$browser->debug($debug = true);
118
110
$browser->getWonIds(1);
119
111
```
120
-
Bid on the following lot `e000000000` to throw `BrowserException`. This auction has already ended.
112
+
Bid on the following lot `e000000000` to throw `AuctionEndedException`. This auction has already ended.
121
113
Bid on the following lot `x000000000` with price under `220` to throw `BrowserException`. It means your price is lower than the current price.
122
114
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.
123
115
Bid on the following lot `x000000000` with price more than `999` for a successful bid.
124
116
```
125
117
$userName = "test_user";
126
118
$userPass = "secret_password";
127
-
$appId = "app_id_random_hash";
128
119
129
-
$browser = new Browser($userName, $userPass, $appId, []);
120
+
$browser = new Browser($userName, $userPass, null, []);
130
121
$browser->debug($debug = true);
131
122
$browser->bid("e000000000", 1000); // Has already ended
- Detect a page with a captcha. If you send a lot of requests to login.
141
-
- Detect a page with ban. If you send too many requests to login.
142
-
- Added method to check login. `checkLogin()`
143
-
- The `getBiddingLots()` method and `getWonIds()` now throw `LoggedOffException`
144
-
- The `login()` method throws `LoginException` and `CaptchaException`
145
-
- The `bid($auc_id, $price)` method now throws `ApiException`, `BrowserException`, `RebidException`, `AuctionEndedException`
146
-
- You can emulate very many attempts to login in debugging mode.
147
-
- You can emulate too many attempts to login and get ban in debugging mode.
148
-
149
-
### Bugfixes
150
-
- Fixed Yahoo login.
151
-
- Fixed checking login.
131
+
- Added xdebug to docker container.
152
132
153
133
### Updates
154
-
- Login to Yahoo has moved to a separated method from the constructor of the class.
155
-
- The `ParserException` won't throw anymore, instead `BrowserException` will be thrown
156
-
- Updated the composer.json file
157
-
- Other refactoring of a code.
134
+
- Yahoo auction API was removed because Yahoo fully closed their API.
135
+
- If the page or lot not found it will throw `PageNotfoundException`.
158
136
159
137
### Notes
160
-
- Replaced `rmccue/requests` with `guzzlehttp/guzzle`
138
+
- Field `$appId` don't need anymore, pass null instead to the `Browser` constructor.
139
+
- Method `$browser->getAuctionInfoAsXml("...")` returns shorted version of API result. Currently, available fields: `Title`, `Seller->Id`, `Img`, `Price`, `TaxinPrice`, `StartTime`, `EndTime`, `Status`.
161
140
162
-
### Migration from v1.1.x
163
-
- You need call `$browser->login()` manually after creating the `Browser` class
164
-
- Also, try to learn from code.
141
+
### Migration from v1.2.x
142
+
- Check available fields for `$browser->getAuctionInfoAsXml("...")` in Notes.
0 commit comments