Queries the information related to the customer.

        Args:
            customer_id: Identifier of the client from which you want to find the associated information.

        Returns:
494609
def get_customer(self, customer_id):
        
        return self.client._get(self.url + 'customers/{}'.format(customer_id), headers=self.get_headers())
531838
public function getUserId()
    {
        /* @var $session \Mage_Customer_Model_Session */
        $session = Mage::getSingleton('customer/session');
        $customer = $session->getCustomer();
        if ($customer !== null) {
            return $session->getCustomer()->getId();
        } else {
            return null;
        }
    }
26021
public function deleteCustomer($customer_id)
    {
        $response = $this->client->delete('customers/' . $customer_id);
        return json_decode($response->getBody())->customer;
    }
178059
def _get_client_fqdn(self, client_info_contents):
    
    yamldict = yaml.safe_load(client_info_contents)
    fqdn = yamldict['system_info']['fqdn']
    client_id = yamldict['client_id'].split('/')[1]
    return client_id, fqdn
721810
def create_customer_request(self, service_desk_id, request_type_id, values_dict, raise_on_behalf_of=None):
        
        log.warning('Creating request...')
        data = {
            "serviceDeskId": service_desk_id,
            "requestTypeId": request_type_id,
            "requestFieldValues": values_dict
        }

        if raise_on_behalf_of:
            data["raiseOnBehalfOf"] = raise_on_behalf_of

        return self.post('rest/servicedeskapi/request', data=data)
91743
function getCustomer(client) {
  return client.commerce().customer().customerAccount().getAccounts({
    pageSize: 1
  }).then(pickFirst);
}
35491
def fetch_by_client_id(self, client_id):
        
        if client_id not in self.clients:
            raise ClientNotFoundError

        return self.clients[client_id]
92816
def get_client_index_from_id(self, client_id):
        """"""
        for index, client in enumerate(self.clients):
            if id(client) == client_id:
                return index
1051364
public function getClientDetails($client_id)
    {
        if (!isset($this->clientCredentials[$client_id])) {
            return false;
        }

        $clientDetails = array_merge(array(
            'client_id'     => $client_id,
            'client_secret' => null,
            'redirect_uri'  => null,
            'scope'         => null,
        ), $this->clientCredentials[$client_id]);

        return $clientDetails;
    }
587737
def update_customer(self, customer_id, customer_deets):
        """"""
        request = self._put("customers/" + str(customer_id), customer_deets)
        return self.responder(request)
566261
def list_customer_users(self, customer_id):
		""""""
		content = self._fetch("/customer/users/%s" % customer_id)
		return map(lambda x: FastlyUser(self, x), content)
1049218
def get_all_contacts_of_client(self, client_id):
        
        return self._iterate_through_pages(
            get_function=self.get_contacts_of_client_per_page,
            resource=CONTACTS,
            **{'client_id': client_id}
        )
217358
public function getClientDetails($client_id)
    {
        $result = $this->getObjectByType('client_table',$client_id);

        return is_null($result) ? false : $result;
    }
1226051
def customer_card_id=(customer_card_id)

      if !customer_card_id.nil? && customer_card_id.to_s.length > 192
        fail ArgumentError, "invalid value for 'customer_card_id', the character length must be smaller than or equal to 192."
      end

      @customer_card_id = customer_card_id
    end
101628
def get_customer(self, customer_id):
		""""""
		content = self._fetch("/customer/%s" % customer_id)
		return FastlyCustomer(self, content)
722351
def client_secrets(cls, client_id):
        
        secrets = yield cls.view.get(key=client_id, include_docs=True)
        raise Return([cls(**secret['doc']) for secret in secrets['rows']])
1306123
def verify_client_id(self):
        

        from .models import Client
        from .exceptions.invalid_client import ClientDoesNotExist
        from .exceptions.invalid_request import ClientNotProvided

        if self.client_id:
            try:
                self.client = Client.objects.for_id(self.client_id)
            # Catching also ValueError for the case when client_id doesn't contain an integer.
            except (Client.DoesNotExist, ValueError):
                raise ClientDoesNotExist()
        else:
            raise ClientNotProvided()