Google_Sheet_Helpers::api_append_row( $spreadsheet_id, $worksheet_id, $key_values )
Method api_append_row
Contents
Parameters Parameters
- $spreadsheet_id
-
(Required)
- $worksheet_id
-
(Required)
- $key_values
-
(Required)
Return Return
(void)
Source Source
File: src/integrations/google-sheet/helpers/google-sheet-helpers.php
public function api_append_row( $spreadsheet_id, $worksheet_id, $key_values ) { $client = $this->get_google_client(); if ( ! $client || empty( $spreadsheet_id ) ) { return; } $response = wp_remote_post( $this->automator_api, array( 'method' => 'POST', 'body' => array( 'action' => 'append_row', 'access_token' => $client, 'spreadsheet_id' => $spreadsheet_id, 'worksheet_id' => $worksheet_id, 'key_values' => $key_values, 'api_ver' => '2.0', 'plugin_ver' => InitializePlugin::PLUGIN_VERSION, ), ) ); return $response; }
Expand full source code Collapse full source code View on Github