<?php
namespace OfficeBrain\Bundle\UserBundle\ApiClient;

use OfficeBrain\Bundle\ApiClientBundle\ApiClient\AbstractApiClient;

class ApiClient extends AbstractApiClient
{
    public function doProcess()
    {
    	switch ($this->apiCallType) {
            case 'get-ob-customer-id':
            	//$this->trace = true;
            	$this->apiCallUrl = 'user/get-ob-customer-id';                
                break;
            case 'find-ob-customer-id-by-email':
                //$this->trace = true;
                $this->apiCallUrl = 'user/find-ob-customer-id-by-email';
                break;
            case 'create-new-ob-customer-id-by-email':
              $this->post = true;
            	$this->apiCallUrl = 'user/create-new-ob-customer-id-by-email';
                break;                
            default:
                break;
        }
        $this->callApi();
    }
}
