Can code be modified for Global Services Members?
miguelagt opened this issue · 1 comments
Thank you so much for writing this! I've had a great time playing around with it.
I am a UA GS. I see more upgrade availability at UAs website than using the code. I think I know why.
Let's take an example. Running the code, I can see that there is upgrade availability on UA2160 on 5/5/2018. This is a flight that departs at 5:40 pm from San Francisco and arrives at 2:06 am in EWR [screenshot (https://photos.app.goo.gl/HlrIHsm1y2dUmodG2)].
When, I go to the United website, the flight has, indeed, a green arrow [screenshot (https://photos.app.goo.gl/ADD77THCSO9DvUCN2)].
However, this is not the only flight available for an upgrade. An earlier flight (UA 213) also has availability for immediate upgrade [screenshot (https://photos.app.goo.gl/dA6oyVx1h7kFKDXU2) ].
I think the reason is the following: GS members can be upgraded if there is PN, or P availability. UA213 shows availability in both of these, while UA2160 doesn't. However, UA2160 has availability in the R, RN fares, which are typically upgradeable for Premier 1k customers.
So, I am assuming that the code is somehow pulling R and RN availability.
This is more of a feature request than a bug: would it be possible to pull the PN and P availability with the code?
United returns some fare class information, however I don't currently parse it. There'd be two ways to go here:
- Look for fare class info, and add a flag to parse it
- Allow you to log in when using the tool
If you want to try things out yourself, the lines you would change are here:
https://github.com/polastre/united/blob/master/united.js#L28