|
|
@ -54,6 +54,13 @@ function fulcrm_apiv2_url_to_pk( $url ) {
|
|
|
|
return intval( $matches[ 2 ] );
|
|
|
|
return intval( $matches[ 2 ] );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function fulcrm_apiv2_url_is_type( $url, $type ) {
|
|
|
|
|
|
|
|
if ( is_string( $url ) ) {
|
|
|
|
|
|
|
|
return ( fulcrm_apiv2_url_to_type( $url ) === $type );
|
|
|
|
|
|
|
|
} else
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function fulcrm_apiv2_http( $method, $object = null, $data = null, $query = null ) {
|
|
|
|
function fulcrm_apiv2_http( $method, $object = null, $data = null, $query = null ) {
|
|
|
|
$url = null;
|
|
|
|
$url = null;
|
|
|
|
|
|
|
|
|
|
|
|