'Return the client_id from the provided request'

def _get_client_id(self, request):

    if (request.method == u'GET'):
        return request.GET.get(u'client_id')
    else:
        return request.POST.get(u'client_id')
