Did I find the right examples for you? yes no

All Samples(12)  |  Call(6)  |  Derive(0)  |  Import(6)

src/p/o/portfoliyo-HEAD/portfoliyo/view/sms.py   portfoliyo(Download)
from django.views.decorators import http, csrf
from twilio import twiml
from twilio.util import RequestValidator
 
from portfoliyo import xact
    def decorator(request, *args, **kw):
        try:
            validator = RequestValidator(settings.TWILIO_AUTH_TOKEN)
            url = request.build_absolute_uri()
            signature = request.META['HTTP_X_TWILIO_SIGNATURE']

src/d/j/django-twilio-0.5.1/django_twilio/decorators.py   django-twilio(Download)
 
from twilio.twiml import Verb
from twilio.util import RequestValidator
 
from django_twilio import settings as django_twilio_settings
            try:
                validator = RequestValidator(
                    django_twilio_settings.TWILIO_AUTH_TOKEN)
                url = request.build_absolute_uri()
                signature = request.META['HTTP_X_TWILIO_SIGNATURE']

src/d/j/django-twilio-sms-0.2/src/decorators.py   django-twilio-sms(Download)
 
from twilio.twiml import Verb
from twilio.util import RequestValidator
 
logger = logging.getLogger("django-twilio-sms.decorators")
            # Validate the request
            try:
                validator = RequestValidator(settings.TWILIO_AUTH_TOKEN)
                url = request.build_absolute_uri()
                # Ensure the original requested url is tested for validation

src/d/j/django-twilio-HEAD/django_twilio/decorators.py   django-twilio(Download)
 
from twilio.twiml import Verb
from twilio.util import RequestValidator
 
from django_twilio import settings as django_twilio_settings
            try:
                validator = RequestValidator(
                    django_twilio_settings.TWILIO_AUTH_TOKEN)
                url = request.build_absolute_uri()
                signature = request.META['HTTP_X_TWILIO_SIGNATURE']

src/t/w/twilio-python-HEAD/tests/test_validation.py   twilio-python(Download)
from six import b
 
from twilio.util import RequestValidator
 
 
class ValidationTest(unittest.TestCase):
 
    def test_validation(self):
        token = "1c892n40nd03kdnc0112slzkl3091j20"
        validator = RequestValidator(token)

src/p/y/python-twilio2-HEAD/tests/test_validation.py   python-twilio2(Download)
import unittest
from twilio.util import RequestValidator
 
 
class ValidationTest(unittest.TestCase):
 
    def test_validation(self):
        token = "1c892n40nd03kdnc0112slzkl3091j20"
        validator = RequestValidator(token)