/** * Revoke a pending contributor invitation. To remove a current contributor, use removeContributor(). * @param string $user Username of user to uninvite. * @return object|null Response to API call OR null if the user does not exit. */ public function uninviteContributor($user) { $user_object = $this->phapper->getUser($user); if (!isset($user_object->data)) { return null; } $user_id = $user_object->kind . '_' . $user_object->data->id; $params = array('api_type' => 'json', 'id' => $user_id); return $this->apiCall("/rm_contributor_invite", 'POST', $params); }