def extract_credentials(self, request):
        try:
            data = self.get_authorization_data(request)
        except __HOLE__:
            username = request.GET.get('username') or request.POST.get('username')
            api_key = request.GET.get('api_key') or request.POST.get('api_key')
        else:
            username, api_key = data.split(':', 1)

        return username, api_key
dataset/ETHPy150Open django-tastypie/django-tastypie/tastypie/authentication.py/ApiKeyAuthentication.extract_credentials