'Create a new customer and return an issue Resource for it.'

def create_customer(self, email, displayName):

    url = (self._options[u'server'] + u'/rest/servicedeskapi/customer')
    headers = {u'X-ExperimentalApi': u'opt-in'}
    r = self._session.post(url, headers=headers, data=json.dumps({u'email': email, u'displayName': displayName}))
    raw_customer_json = json_loads(r)
    if (r.status_code != 201):
        raise JIRAError(r.status_code, request=r)
    return Customer(self._options, self._session, raw=raw_customer_json)
