Advertisement
verygoodplugins

Untitled

Jun 24th, 2020
1,356
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.41 KB | None | 0 0
  1. $params  = wp_fusion()->crm->get_params(); // Get the authentication headers
  2. $request = 'https://api.hubapi.com/crm/v3/objects/contacts/search';
  3.  
  4. $search = array(
  5.     'filterGroups' => array(
  6.         'filters' => array(
  7.             'propertyName' => 'firstname',
  8.             'operator'     => 'EQ',
  9.             'value'        => 'Alice',
  10.         ),
  11.     ),
  12. );
  13.  
  14. $params['body'] = json_encode( $search );
  15.  
  16. $result = wp_remote_post( $request, $params );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement