Exemple #1
0
/**
 * Civixero.ContactPull API.
 *
 * @param array $params
 *
 * @return array
 *   API result descriptor
 *
 * @see civicrm_api3_create_success
 * @see civicrm_api3_create_error
 * @throws API_Exception
 */
function civicrm_api3_civixero_invoicepush($params)
{
    $options = _civicrm_api3_get_options_from_params($params);
    $xero = new CRM_Civixero_Invoice($params);
    $xero->push($params, $options['limit']);
}
Exemple #2
0
/**
 * Civixero.ContactPull API.
 *
 * @param array $params
 *
 * @return array
 *   API result descriptor
 *
 * @see civicrm_api3_create_success
 * @see civicrm_api3_create_error
 * @throws API_Exception
 */
function civicrm_api3_civixero_invoicepull($params)
{
    $xero = new CRM_Civixero_Invoice($params);
    $xero->pull($params);
}