简体   繁体   中英

Add data with url to Google Spreadsheet (via PHP)

I'm used this Google API How to connect to receive values from spreadsheet

And tried add row with url:

$row=array(
      'downloadvideo' => '[link url="'.$this->linkVideo.'"]Download[/link]',
);

$listFeed->insert($row);

or

$row=array(
      'downloadvideo' => '[url '.$this->linkVideo.']Download[/link]',
);

$listFeed->insert($row);

But it's not working.

I need that user will see only word "Download", but after click — it's will open full http url. Any ideas?

Found solution:

$row=array(
      'downloadvideo' => '=HYPERLINK("'.$this->linkVideo.'";"Download")',
);

$listFeed->insert($row);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM