@R_Amsaveni Thanks for the reply.
I am using below code ;
$url = urlencode('https://tweester.in/tweetcafe/webhook/twitter/getTweet.php');
$webhooksUrl = 'https://api.twitter.com/1.1/account_activity/all/env-beta/webhooks.json?url=' . $url;
$token = 'my_access_token';
$headers = array(
'Content-Type:application/x-www-form-urlencoded',
'authorization: Bearer ' . $token,
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $webhooksUrl);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER,$headers);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
$result = curl_exec($ch);
curl_close($ch);
echo '<pre>';print_r($result);exit;