small python issue - async webhook -- 2
Budget: $10 – $30 USD
i receive a webhook response
@api_view(['POST', 'GET'])
def getWebHookResponse(request):
return data
i have a function sitting in another file
def a:
# do some previous work
if blabla:
data = await getWebHookResponse() # add like timeout 30s and raise exception if failed within 30sec for example
how to do this in python without external library , keep it very simple
only apply if you know the answer and do it directly, dont waste my time , I need answer now
@api_view(['POST', 'GET'])
def getWebHookResponse(request):
return data
i have a function sitting in another file
def a:
# do some previous work
if blabla:
data = await getWebHookResponse() # add like timeout 30s and raise exception if failed within 30sec for example
how to do this in python without external library , keep it very simple
only apply if you know the answer and do it directly, dont waste my time , I need answer now