使用php从Yammer组中删除某人

时间:2018-08-13 13:55:36

标签: php yammer

我具有将人员添加到特定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()
     )
    );
}

我该如何写一篇能踢人的书呢?

0 个答案:

没有答案