Easy-Example
Last updated
Last updated
$token = "token from the Site to Site link"
$args = [
'method' => 'POST',
'body' => $fields,
'headers' => [
'Authorization' => 'Bearer ' . $token,
],
];
return wp_remote_post( 'https://example.disciple.tools/wp-json/dt-posts/v2/contacts', $args );