Esempio n. 1
0
def recurly_create_account(request):
	api = RecurlyAPI()
	api.create_account(request.GET.get('code'), request.GET.get('email'), request.GET.get('first_name'), request.GET.get('last_name'))
	return redirect('/recurly/get_accounts')
Esempio n. 2
0
def recurly_get_accounts(request):
	api = RecurlyAPI()
	response = api.get_accounts()
	return HttpResponse(json.dumps(response), content_type="application/json")