Beispiel #1
0
import json
import csv
import datetime

from api_swgoh_help import api_swgoh_help, settings

# Change the settings below
creds = settings('smith007', '900FYO5683FJK2W6DFUYK57890')
client = api_swgoh_help(creds)

filename = "allycodes.csv"
with open(filename) as f:
    reader = csv.reader(f)
    allycodes = []
    for ally in reader:
        try:
            print(ally)
            allycodes.append(ally[0])
        except:
            pass

print(allycodes)

# Fetch player information (one or more allycodes in a list)
project = {}
#project['id']=1
project['arena'] = {"char": {"rank": 3}, "ship": {"rank": 2}}
project['name'] = 2
project['updated'] = 2

players = client.fetchPlayers(allycodes, project)
Beispiel #2
0
#!/usr/bin/env python3

import json

from api_swgoh_help import api_swgoh_help, settings

# Initialize data structures
toons = {}
skills = {}
abilities = {}
gear = {}

# Change the settings below
creds = settings('CrazyOldBen', 'JBJBpsvXpjp9Dhk')
client = api_swgoh_help(creds)

allycodes = [123456789]

# Build local list of obtainable characters
payload = {}
payload['collection'] = "unitsList"
payload['language'] = "eng_us"
payload['enums'] = True
payload['match'] = {"rarity": 7,
                    "obtainable": True,
                    "obtainableTime": 0
                    }
payload['project'] = {"baseId": 1,
                      "nameKey": 1,
                      "descKey": 1,
                      "forceAlignment": 1,
Beispiel #3
0
#!/usr/bin/env python3

import json

from api_swgoh_help import api_swgoh_help, settings

# Initialize data structures
toons = {}
skills = {}
abilities = {}
gear = {}

# Change the settings below
creds = settings('JohnDoe', 'password')
client = api_swgoh_help(creds)

allycodes = [123456789]

# Build local list of obtainable characters
payload = {}
payload['collection'] = "unitsList"
payload['language'] = "eng_us"
payload['enums'] = True
payload['match'] = {"rarity": 7, "obtainable": True, "obtainableTime": 0}
payload['project'] = {
    "baseId": 1,
    "nameKey": 1,
    "descKey": 1,
    "forceAlignment": 1,
    "categoryIdList": 1,
    "combatType": 1