Where to find contract IDs?
I see where to find IDs but is there a place to find the IDs for contracts and other resources? Thanks
The problem with contracts is that they have 'resource_id.' For example check these resource ids: [5001002, 5001005, 5001008, 5001011] with: info = fut.cardInfo(resourceId) print(info) I do not know how to add contracts to the tradepile though.
resource_id is generic id for all card so that's not enought, You have to get this specific card id (item_id). move all 5001002 cards from unassigned to tradepile:
all_unassigned = fut.unassigned()
for card in all_unassigned:
if card['resourceId'] = 5001002:
fut.sendToTradepile(0, card['id'])
0 is the correct value for unassigned (new, not traded yet) items otherwise use trade_id
TODO:
- [ ] default trade_id
- [ ] piles should be decorated by @property (api break)
- [ ] clubConsumables & clubConsumablesDetails parser
- [ ] what's difference between <ClubConsumableSearch>club/consumables</ClubConsumableSearch> and <ClubConsumableStats>club/stats/consumables</ClubConsumableStats>
Wow. Thanks for the help. Truly appreciate it.
On Mon, May 1, 2017 at 3:30 AM, Piotr Staroszczyk [email protected] wrote:
resource_id is generic id for all card so that's not enought, You have to get this specific card id (item_id). move all 5001002 cards from unassigned to tradepile:
all_unassigned = fut.unassigned()for card in all_unassigned: if card['resourceId'] = 5001002: fut.sendToTradepile(0, card['id'])
0 is the correct value for unassigned (new, not traded yet) items otherwise use trade_id
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/oczkers/fut/issues/206#issuecomment-298316415, or mute the thread https://github.com/notifications/unsubscribe-auth/ALv9ctnPVLpBxnRpYLyMVgyi9GRSzgTwks5r1bRLgaJpZM4KU9Vo .
Would you please also tell me how to move a contract card from my club consumables into the tradepile?
You can get club consumables using fut.clubConsumables() and then just sendToTradepile
You are really helpful, thanks. Truly appreciate your help. I do use clubConsumables, but the result is a dictionary containing all types of contracts. For example, I write:
items = fut.clubConsumables() print(items)
{'category': 'consumables', 'stat': [{'contextValue': 2, 'type': 'consumablesContractPlayer', 'contextId': 1, 'typeValue': 16}, {'contextValue': 2, 'type': 'consumablesContractManager', 'contextId': 1, 'typeValue': 12}, {'contextValue': 2, 'type': 'consumablesFormationPlayer', 'contextId': 1, 'typeValue': 0}, {'contextValue': 2, 'type': 'consumablesFormationManager', 'contextId': 1, 'typeValue': 0}, {'contextValue': 2, 'type': 'consumablesPosition', 'contextId': 1, 'typeValue': 3}, {'contextValue': 2, 'type': 'consumablesTraining', 'contextId': 1, 'typeValue': 0}, {'contextValue': 2, 'type': 'consumablesTrainingPlayer', 'contextId': 1, 'typeValue': 2}, {'contextValue': 2, 'type': 'consumablesTrainingManager', 'contextId': 1, 'typeValue': 0}, {'contextValue': 2, 'type': 'consumablesTrainingGk', 'contextId': 1, 'typeValue': 5}, {'contextValue': 2, 'type': 'consumablesTrainingPlayerPlayStyle', 'contextId': 1, 'typeValue': 7}, {'contextValue': 2, 'type': 'consumablesTrainingGkPlayStyle', 'contextId': 1, 'typeValue': 2}, {'contextValue': 2, 'type': 'consumablesTrainingManagerLeagueModifier', 'contextId': 1, 'typeValue': 1}, {'contextValue': 2, 'type': 'consumablesHealing', 'contextId': 1, 'typeValue': 7}, {'contextValue': 2, 'type': 'consumablesTeamTalksPlayer', 'contextId': 1, 'typeValue': 0}, {'contextValue': 2, 'type': 'consumablesTeamTalksTeam', 'contextId': 1, 'typeValue': 0}, {'contextValue': 2, 'type': 'consumablesFitnessPlayer', 'contextId': 1, 'typeValue': 15}, {'contextValue': 2, 'type': 'consumablesFitnessTeam', 'contextId': 1, 'typeValue': 2}, {'contextValue': 2, 'type': 'consumables', 'contextId': 1, 'typeValue': 72}]}
now, I do not know how to for example send a gold contract players into the pile. I understand for gold contract players we have: {'contextValue': 1, 'type': 'consumablesContractPlayer', 'contextId': 1, 'typeValue': number of such cards} But I am not sure how to proceed. Thanks again. You are the best.
-best, Arash
On Tue, May 2, 2017 at 4:08 AM, Piotr Staroszczyk [email protected] wrote:
You can get club consumables using fut.clubConsumables() and then just sendToTradepile
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/oczkers/fut/issues/206#issuecomment-298606329, or mute the thread https://github.com/notifications/unsubscribe-auth/ALv9cjZ7aN8ItCGmseLT4H8F5bVcyxY3ks5r1w6sgaJpZM4KU9Vo .
I should make nice parser for this but need more help to understand this output: contextValue - 1 for gold 2 for silver 3 for regluar? (just guessing) type - consumable type contextId - ??? typeValue - number of this specific cards in club
Back to Your question, to be honest i thought this method is returning all consumable cards ids but looks like it's only statistic. Now i'm 99% sure you can get consumables using new method (resource_id and count) (https://github.com/oczkers/fut/commit/d0d83e7c4c6ce86281e38ee28efb2b4eda651624):
items = fut.clubConsumablesDetails()
Thanks for all your help. I do not have clubConsumablesDetails() on version 0.2.14 (Hopefully I did not make a mistake) but will definitely let you know the result as soon as I either find it or update the package. Thanks again. :)
On Tue, May 2, 2017 at 8:52 AM, Piotr Staroszczyk [email protected] wrote:
I should make nice parser for this but need more help to understand this output: contextValue - 1 for gold 2 for silver 3 for regluar? (just guessing) type - consumable type contextId - ??? typeValue - number of this specific cards in club
Back to Your question, to be honest i thought this method is returning all consumable cards ids but looks like it's only statistic. Now i'm 99% sure you can get consumables using new method (resource_id and count) (d0d83e7 https://github.com/oczkers/fut/commit/d0d83e7c4c6ce86281e38ee28efb2b4eda651624 ):
items = fut.clubConsumablesDetails()
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/oczkers/fut/issues/206#issuecomment-298677151, or mute the thread https://github.com/notifications/unsubscribe-auth/ALv9cgxX1_LZ3C4uqS1suaoYyZZf0w4Jks5r11FYgaJpZM4KU9Vo .
I've just pushed commit to github without releasing new version to pypi because i want to make parser instead of this ugly dictionaries from ea but i need more info first :-).
Link for latest github version: https://github.com/oczkers/fut/archive/master.zip
wow! you are fast! Yeah, a parser will be much better. Thanks. :)
On Tue, May 2, 2017 at 9:33 AM, Piotr Staroszczyk [email protected] wrote:
I've just pushed commit to github without releasing new version to pypi because i want to make parser instead of this ugly dictionaries from ea.
Link for latest github version: https://github.com/oczkers/ fut/archive/master.zip
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/oczkers/fut/issues/206#issuecomment-298688754, or mute the thread https://github.com/notifications/unsubscribe-auth/ALv9ciy6SpS4tl88vcZTTt5_BLzIVo53ks5r11rCgaJpZM4KU9Vo .
@oczkers it seems the clubConsumablesDetails() is now commented out in the source code. Any plan to get it back to life? Is that broken? Thanks!