array(                'url' => $image_url,                'caption' => $caption,                'published' => 'true',                'access_token' => QA_FB_PAGE_TOKEN            ),            'timeout' => 60        )    );} /* ==============================     TWITTER POST============================== */ function qa_post_to_twitter($image_url, $caption) {     // STEP 1: Upload media    $media_response = qa_twitter_oauth_request(        'https://upload.twitter.com/1.1/media/upload.json',        array('media' => base64_encode(file_get_contents($image_url))),        'POST'    );     if (empty($media_response->media_id_string)) return;     // STEP 2: Post tweet    qa_twitter_oauth_request(        'https://api.twitter.com/1.1/statuses/update.json',        array(            'status' => $caption,            'media_ids' => $media_response->media_id_string        ),        'POST'    );} /* ==============================     TWITTER OAUTH CORE============================== */ function qa_twitter_oauth_request($url, $params, $method = 'POST') {     $oauth = array(        'oauth_consumer_key' => QA_TW_CONSUMER_KEY,        'oauth_token' => QA_TW_ACCESS_TOKEN,        'oauth_nonce' => wp_generate_password(12, false),        'oauth_timestamp' => time(),        'oauth_signature_method' => 'HMAC-SHA1',        'oauth_version' => '1.0'    );     $base_params = array_merge($oauth, $params);    ksort($base_params);     $base_string = strtoupper($method) . "&" .        rawurlencode($url) . "&" .        rawurlencode(http_build_query($base_params, '', '&', PHP_QUERY_RFC3986));     $signing_key = rawurlencode(QA_TW_CONSUMER_SECRET) . '&' .                   rawurlencode(QA_TW_ACCESS_SECRET);     $oauth['oauth_signature'] = base64_encode(        hash_hmac('sha1', $base_string, $signing_key, true)    );     $header = 'OAuth ';    $values = array();    foreach ($oauth as $key => $value) {        $values[] = $key . '="' . rawurlencode($value) . '"';    }    $header .= implode(', ', $values);     $args = array(        'headers' => array('Authorization' => $header),        'body' => $params,        'timeout' => 60    );     $response = wp_remote_request($url, array_merge($args, array('method' => $method)));     return json_decode(wp_remote_retrieve_body($response));} Indian Army Chief – TIMES OF ISLAMABAD https://timesofislamabad.com Pakistan's Premier International English News Agency Fri, 04 Sep 2020 00:00:00 +0000 en-US hourly 1 https://wordpress.org/?v=6.9.1 https://timesofislamabad.com/wp-content/uploads/2026/01/cropped-486152145_1088442643323375_3226878016604182917_n-32x32.jpg Indian Army Chief – TIMES OF ISLAMABAD https://timesofislamabad.com 32 32 Indian Army Chief breaks silence over the military confrontation with China https://timesofislamabad.com/04-09-2020/indian-army-chief-breaks-silence-over-the-military-confrontation-with-china/ Fri, 04 Sep 2020 00:00:00 +0000 https://timesofislamabad.com/04-09-2020/indian-army-chief-breaks-silence-over-the-military-confrontation-with-china/ Beating the war drums, Indian army Chief General Narvane gives another stern warning to Pakistan https://timesofislamabad.com/15-01-2020/beating-the-war-drums-indian-army-chief-general-narvane-gives-another-stern-warning-to-pakistan/ Wed, 15 Jan 2020 00:00:00 +0000 https://timesofislamabad.com/15-01-2020/beating-the-war-drums-indian-army-chief-general-narvane-gives-another-stern-warning-to-pakistan/ In a setback, Indian Army Chief General Bipin Rawat shown the door with the dream of becoming the first ever Chief of Defence Staff https://timesofislamabad.com/29-11-2019/in-a-setback-indian-army-chief-general-bipin-rawat-shown-the-door-with-the-dream-of-becoming-the-first-ever-chief-of-defence-staff/ Fri, 29 Nov 2019 00:00:00 +0000 https://timesofislamabad.com/29-11-2019/in-a-setback-indian-army-chief-general-bipin-rawat-shown-the-door-with-the-dream-of-becoming-the-first-ever-chief-of-defence-staff/ Indian Army Chief General Bipin Rawat expressed surprised over Pakistan PM Imran Khan https://timesofislamabad.com/30-09-2019/indian-army-chief-general-bipin-rawat-expressed-surprised-over-pakistan-pm-imran-khan/ Mon, 30 Sep 2019 00:00:00 +0000 https://timesofislamabad.com/30-09-2019/indian-army-chief-general-bipin-rawat-expressed-surprised-over-pakistan-pm-imran-khan/ Indian Army Chief General Bipin Rawat mocked over failed Balakot strike in response to his bragging about strike https://timesofislamabad.com/21-09-2019/indian-army-chief-general-bipin-rawat-mocked-over-failed-balakot-strike-in-response-to-his-bragging-about-strike/ Sat, 21 Sep 2019 00:00:00 +0000 https://timesofislamabad.com/21-09-2019/indian-army-chief-general-bipin-rawat-mocked-over-failed-balakot-strike-in-response-to-his-bragging-about-strike/ Indian Army Chief General Bipin Rawat slammed and snubbed https://timesofislamabad.com/21-09-2019/indian-army-chief-general-bipin-rawat-slammed-and-snubbed/ Sat, 21 Sep 2019 00:00:00 +0000 https://timesofislamabad.com/21-09-2019/indian-army-chief-general-bipin-rawat-slammed-and-snubbed/ Indian Army Chief seems impressed from Pakistan Military DG ISPR https://timesofislamabad.com/04-09-2019/indian-army-chief-seems-impressed-from-pakistan-military-dg-ispr/ Wed, 04 Sep 2019 00:00:00 +0000 https://timesofislamabad.com/04-09-2019/indian-army-chief-seems-impressed-from-pakistan-military-dg-ispr/ Indian Army Chief hits out at Pakistan yet again, believes Radar cannot see through clouds https://timesofislamabad.com/26-05-2019/indian-army-chief-hits-out-at-pakistan-yet-again-believes-radar-cannot-see-through-clouds/ Sun, 26 May 2019 00:00:00 +0000 https://timesofislamabad.com/26-05-2019/indian-army-chief-hits-out-at-pakistan-yet-again-believes-radar-cannot-see-through-clouds/ Indian Army Chief yet again threatens to strike Pakistan across LoC https://timesofislamabad.com/16-01-2019/indian-army-chief-yet-again-threatens-to-strike-pakistan-across-loc/ Wed, 16 Jan 2019 00:00:00 +0000 https://timesofislamabad.com/16-01-2019/indian-army-chief-yet-again-threatens-to-strike-pakistan-across-loc/ To boost the demoralised troops at borders, Indian Army Chief threatens Pakistan yet again https://timesofislamabad.com/15-01-2019/to-boost-the-demoralised-troops-at-borders-indian-army-chief-threatens-pakistan-yet-again/ Tue, 15 Jan 2019 00:00:00 +0000 https://timesofislamabad.com/15-01-2019/to-boost-the-demoralised-troops-at-borders-indian-army-chief-threatens-pakistan-yet-again/