コード例 #1
0
ファイル: tournaments.py プロジェクト: m3fh4q/powerchallonge
def process_check_ins(identifier, **params):
    api_method = 'Tournaments : Process Check-ins'
    identifier = tools.convert_identifier(identifier)
    target = '/' + identifier + '/process_check_ins'
    return tools.request('POST', target, api_method, prefix, 0, **params)
コード例 #2
0
ファイル: tournaments.py プロジェクト: m3fh4q/powerchallonge
def update(identifier, **params):
    api_method = 'Tournaments : Update'
    identifier = tools.convert_identifier(identifier)
    target = '/' + identifier
    return tools.request('PUT', target, api_method, prefix, 1, **params)
コード例 #3
0
ファイル: tournaments.py プロジェクト: m3fh4q/powerchallonge
def destroy(identifier):
    api_method = 'Tournaments : Destroy'
    identifier = tools.convert_identifier(identifier)
    target = '/' + identifier
    return tools.request('DELETE', target, api_method, prefix, 0)
コード例 #4
0
def destroy(identifier, match_id, attachment_id):
    api_method = 'Match Attachments : Destroy'
    identifier = tools.convert_identifier(identifier)
    target = '/' + identifier + '/matches/' + str(match_id) + '/attachments/'\
        + str(attachment_id)
    return tools.request('DELETE', target, api_method, prefix, 0)
コード例 #5
0
ファイル: participants.py プロジェクト: m3fh4q/powerchallonge
def bulk_add(identifier, **params):
    api_method = 'Participants : Bulk Add'
    identifier = tools.convert_identifier(identifier)
    target = '/' + identifier + '/participants/bulk_add'
    return tools.request('POST', target, api_method, 'participants[]', 1,
                         **params)
コード例 #6
0
ファイル: tournaments.py プロジェクト: m3fh4q/powerchallonge
def finalize(identifier, **params):
    api_method = 'Tournaments : Finalize'
    identifier = tools.convert_identifier(identifier)
    target = '/' + identifier + '/finalize'
    return tools.request('POST', target, api_method, prefix, 0, **params)
コード例 #7
0
def show(identifier, match_id, attachment_id):
    api_method = 'Match Attachments : Show'
    identifier = tools.convert_identifier(identifier)
    target = '/' + identifier + '/matches/' + str(match_id) + '/attachments/'\
        + str(attachment_id)
    return tools.request('GET', target, api_method, prefix, 0)
コード例 #8
0
ファイル: participants.py プロジェクト: m3fh4q/powerchallonge
def randomize(identifier):
    api_method = 'Participants : Randomize'
    identifier = tools.convert_identifier(identifier)
    target = '/' + identifier + '/participants/randomize'
    return tools.request('POST', target, api_method, prefix, 0)
コード例 #9
0
ファイル: matches.py プロジェクト: m3fh4q/powerchallonge
def show(identifier, match_id, **params):
    api_method = 'Matches  : Show'
    identifier = tools.convert_identifier(identifier)
    target = '/' + identifier + '/matches/' + str(match_id)
    return tools.request('GET', target, api_method, prefix, 0, **params)
コード例 #10
0
ファイル: participants.py プロジェクト: m3fh4q/powerchallonge
def undo_check_in(identifier, participant_id):
    api_method = 'Participants : Undo Check In'
    identifier = tools.convert_identifier(identifier)
    target = '/' + identifier + '/participants/' + \
        str(participant_id) + '/undo_check_in'
    return tools.request('POST', target, api_method, prefix, 0)
コード例 #11
0
ファイル: participants.py プロジェクト: m3fh4q/powerchallonge
def destroy(identifier, participant_id):
    api_method = 'Participants : Destroy'
    identifier = tools.convert_identifier(identifier)
    target = '/' + identifier + '/participants/' + str(participant_id)
    return tools.request('DELETE', target, api_method, prefix, 0)
コード例 #12
0
ファイル: participants.py プロジェクト: m3fh4q/powerchallonge
def index(identifier):
    api_method = 'Participants : Index'
    identifier = tools.convert_identifier(identifier)
    target = '/' + identifier + '/participants'
    return tools.request('GET', target, api_method, prefix, 0)
コード例 #13
0
ファイル: participants.py プロジェクト: m3fh4q/powerchallonge
def update(identifier, participant_id, **params):
    api_method = 'Participants : Update'
    identifier = tools.convert_identifier(identifier)
    target = '/' + identifier + '/participants/' + str(participant_id)
    return tools.request('PUT', target, api_method, prefix, 1, **params)
コード例 #14
0
ファイル: participants.py プロジェクト: m3fh4q/powerchallonge
def show(identifier, participant_id, **params):
    api_method = 'Participants : Show'
    identifier = tools.convert_identifier(identifier)
    target = '/' + identifier + '/participants/' + str(participant_id)
    return tools.request('GET', target, api_method, prefix, 0, **params)
コード例 #15
0
ファイル: tournaments.py プロジェクト: m3fh4q/powerchallonge
def abort_check_in(identifier, **params):
    api_method = 'Tournaments : Abort Check-in'
    identifier = tools.convert_identifier(identifier)
    target = '/' + identifier + '/abort_check_in'
    return tools.request('POST', target, api_method, prefix, 0, **params)
コード例 #16
0
ファイル: matches.py プロジェクト: m3fh4q/powerchallonge
def reopen(identifier, match_id):
    api_method = 'Matches  : Reopen'
    identifier = tools.convert_identifier(identifier)
    target = '/' + identifier + '/matches/' + str(match_id) + '/reopen'
    return tools.request('POST', target, api_method, prefix, 0)
コード例 #17
0
ファイル: tournaments.py プロジェクト: m3fh4q/powerchallonge
def index(**params):
    api_method = 'Tournaments : Index'
    return tools.request('GET', '', api_method, prefix, 0, **params)
コード例 #18
0
ファイル: matches.py プロジェクト: m3fh4q/powerchallonge
def index(identifier, **params):
    api_method = 'Matches : Index'
    identifier = tools.convert_identifier(identifier)
    target = '/' + identifier + '/matches'
    return tools.request('GET', target, api_method, prefix, 0, **params)
コード例 #19
0
ファイル: tournaments.py プロジェクト: m3fh4q/powerchallonge
def reset(identifier, **params):
    api_method = 'Tournaments : Reset'
    identifier = tools.convert_identifier(identifier)
    target = '/' + identifier + '/reset'
    return tools.request('POST', target, api_method, prefix, 0, **params)
コード例 #20
0
ファイル: tournaments.py プロジェクト: m3fh4q/powerchallonge
def create(**params):
    api_method = 'Tournaments : Create'
    return tools.request('POST', '', api_method, prefix, 1, **params)
コード例 #21
0
def update(identifier, match_id, attachment_id, **params):
    api_method = 'Match Attachments : Update'
    identifier = tools.convert_identifier(identifier)
    target = '/' + identifier + '/matches/' + str(match_id) + '/attachments/'\
        + str(attachment_id)
    return tools.request('PUT', target, api_method, prefix, 1, **params)
コード例 #22
0
ファイル: tournaments.py プロジェクト: m3fh4q/powerchallonge
def show(identifier, **params):
    api_method = 'Tournaments : Show'
    identifier = tools.convert_identifier(identifier)
    target = '/' + identifier
    return tools.request('GET', target, api_method, prefix, 0, **params)
コード例 #23
0
def index(identifier, match_id):
    api_method = 'Match Attachments : Index'
    identifier = tools.convert_identifier(identifier)
    target = '/' + identifier + '/matches/' + str(match_id) + '/attachments'
    return tools.request('GET', target, api_method, prefix, 0)
コード例 #24
0
ファイル: participants.py プロジェクト: m3fh4q/powerchallonge
def create(identifier, **params):
    api_method = 'Participants : Create'
    identifier = tools.convert_identifier(identifier)
    target = '/' + identifier + '/participants'
    return tools.request('POST', target, api_method, prefix, 1, **params)