def introduce_performer(app_id, uid, sex=None, year=None, city=None, secret=None): if secret is None: secret = get_app(app_id).secret params = dict(method='introducePerformer', app_id=app_id, uid=uid) dict_update_filled_params(params, sex=sex, year=year, city=city) return api_get(params, secret)
def do_offer(offer_id, app_id, uid, platform, secret=None): if secret is None: secret = get_app(app_id).secret params = dict( method='doOffer', app_id=app_id, offer_id=offer_id, uid=uid, platform=platform) return api_get(params, secret)
def get_offers(app_id, uid, filter, hour=None, secret=None): if secret is None: secret = get_app(app_id).secret params = dict( method='getOffers', format='JSON', app_id=app_id, uid=uid, filter=filter) if hour is not None: params.update(hour=hour) return api_get(params, secret)