Ejemplo n.º 1
0
def allow_free_trial(user):
    client = Client(settings.SPREEDLY_AUTH_TOKEN_SECRET, settings.SPREEDLY_SITE_NAME)
    client.allow_free_trial(user.id)
Ejemplo n.º 2
0
def allow_free_trial(user, site=DEFAULT_SITE_ALIAS):
    site=get_site(site)

    client = Client(site['SPREEDLY_AUTH_TOKEN_SECRET'], site['SPREEDLY_SITE_NAME'])
    client.allow_free_trial(user.id)
    return get_subscription(user, site['SPREEDLY_SITE_NAME'])