Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/p/y/pythondotorg-HEAD/pydotorg/resources.py   pythondotorg(Download)
 
        try:
            username, api_key = self.extract_credentials(request)
        except ValueError:
            return self._unauthorized()

src/e/l/ella-hub-HEAD/ella_hub/auth.py   ella-hub(Download)
            return response
 
        username, key = self.extract_credentials(request)
        try:
            api_key = ApiKey.objects.get(user__username=username, key=key)