Creating a new PHPExcel Object.
$this->PHPExcel = new PHPExcel();
Creating a new sheet:
| #!/bin/bash | |
| #ubuntu 18.04 | |
| #php7.4 | |
| # install php ppa | |
| apt -y install software-properties-common | |
| add-apt-repository ppa:ondrej/php -y | |
| apt update |
| function queryTwitter($search) | |
| { | |
| $url = "https://api.twitter.com/1.1/search/tweets.json"; | |
| if($search != "") | |
| $search = "#".$search; | |
| $query = array( 'count' => 100, 'q' => urlencode($search), "result_type" => "recent"); | |
| $oauth_access_token = "ABCD"; | |
| $oauth_access_token_secret = "1234"; | |
| $consumer_key = "abcd"; | |
| $consumer_secret = "5678"; |