Advertisement
verygoodplugins

Untitled

Oct 30th, 2018
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.42 KB | None | 0 0
  1. $params = array(
  2.     'timeout'     => 30,
  3.     'httpversion' => '1.1',
  4.     'headers'     => array(
  5.         "Api-Appid" => $api_url,
  6.         "Api-Key"   => $api_key
  7.     ),
  8.     'method       => 'PUT'
  9. );
  10.  
  11. $data = array(
  12.     'objectID'  => 0,
  13.     'id'        => $contact_id,
  14.     'f1564'     => 'https://myfleurdevie.com/checkout/?wpfrc=390'
  15. }
  16.  
  17. $params['body'] = json_encode( $data );
  18.  
  19. $response = wp_remote_post( "https://api.ontraport.com/1/objects", $params );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement