|
|
|
|
@ -5,6 +5,11 @@ from .models import ASSNotification |
|
|
|
|
from django.conf import settings |
|
|
|
|
import json, jwt |
|
|
|
|
|
|
|
|
|
import logging |
|
|
|
|
import logging.config |
|
|
|
|
|
|
|
|
|
logger = logging.getLogger("main") |
|
|
|
|
|
|
|
|
|
def index(request): |
|
|
|
|
return HttpResponse("Hello, world. You're at the subs index.") |
|
|
|
|
|
|
|
|
|
@ -27,7 +32,8 @@ def app_store_webhook(request): |
|
|
|
|
|
|
|
|
|
decodedPayload = jwt.decode(signedPayload, key, algorithms=['ES256']) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print('hell yeah!' + str(key)) |
|
|
|
|
logger.debug('test getLogger' + str(key)) |
|
|
|
|
|
|
|
|
|
notification = ASSNotification( |
|
|
|
|
content=decodedPayload, |
|
|
|
|
|