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));} Pakistan becomes 20th most affected country from the novel coronavirus in the World – TIMES OF ISLAMABAD
Times of Islamabad

Pakistan becomes 20th most affected country from the novel coronavirus in the World

Pakistan becomes 20th most affected country from the novel coronavirus in the World

ISLAMABAD – Pakistan becomes 20th most affected country from the novelcoronavirus.

Pakistan climbed to the 20th spot on the global coronavirus ranking onSunday after the nationwide tally of COVID-19 patients crossed 30,000 afterSindh reported 709 new cases.

According to the coronavirus tracker by John Hopkins University, thecountry is now ranked 27th with 648 deaths.

Earlier today, the national dashboard in its daily update had stated that1,991 cases were detected in the country in the last 24 hours taking thenational tally to 29,465 . This was the biggest single-day jump sinceFebruary 26 when the first case was reported.

Sindh leads the tally with 11,480 cases, followed by Punjab with 11,093. InKhyber Pakhtunkhawa, 4,509 cases have been recorded while 1,935 cases havebeen reported in Balochistan. Gilgit Baltistan has reported 430, Islamabad641 and AJK has reported 86 cases so far.

In the last 24 hours, 13,341 tests have been conducted of which 1,991 cameback positive. In total, 283,517 tests have been conducted in the countryso far.

Meanwhile, 267 patients have recovered from the virus, taking the totalnumber of recoveries in the country to 8,023.

Globally there are now at least 4,001,437 cases of coronavirus with 277,127deaths.