我具有将人员添加到特定Yammer组的功能
function add_on_yammer($group_id, $email){
$url = 'https://www.yammer.com/api/v1/group_memberships.json';
$response = wp_remote_post( $url, array(
'method' => 'POST',
'timeout' => 45,
'redirection' => 5,
'httpversion' => '1.0',
'blocking' => true,
'headers' => array( 'Host' => 'www.yammer.com', 'Authorization' => 'Bearer *******-**********************' ),
'body' => array( 'email' => $email, 'group_id' => $group_id ),
'cookies' => array()
)
);
}
我该如何写一篇能踢人的书呢?