old_contents: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  from tastypie.constants import ALL
  
  
  class MetaBase:
      allowed_methods = ['get']
      filtering = {
          'site_domain': ALL,
          'channel_long_slug': ALL,
          'child_class': ALL,
          'tags': ALL,
      }
  
new_contents: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  from tastypie.constants import ALL
  from tastypie.authentication import ApiKeyAuthentication
  from tastypie.models import ApiKey
  
  
  class MetaBase:
      allowed_methods = ['get']
      filtering = {
          'site_domain': ALL,
          'channel_long_slug': ALL,
          'child_class': ALL,
          'tags': ALL,
      }
  
  
  class ApiAuthentication(ApiKeyAuthentication):
      def is_authenticated(self, request, **kwargs):
          try:
              ApiKey.objects.get(
                  user__username=request.GET.get('username'),
                  key=request.GET.get('api_key'))
              return True
          except:
              ApiKey.DoesNotExist()
              return False
  
      def get_identifier(self, request):
          return request.user.username
  
subject: Create Opps Api Authentication