- Connectors
- All Webhooks
- Webhooks
- Google Sheets API v4 | POST V4 Spreadsheets [Shared]
- Show
- REST API
Retrieve all existing Plain webhooks:
Retrieve all existing Plain webhooks you have previously created.
get https://cenit.io/api/v2/setup/plain_webhook.json
tenant_access_key='...' tenant_access_token='...' curl -X GET \ -H "X-Tenant-Access-Key: ${tenant_access_key}" \ -H "X-Tenant-Access-Token: ${tenant_access_token}" \ -H "Content-Type: application/json" \ -d '{"page":1,"limit":25,"order":"id"}' \ "https://cenit.io/api/v2/setup/plain_webhook.json"
$tenant_access_key = '...'; $tenant_access_token = '...'; $uri = "https://cenit.io/api/v2/setup/plain_webhook.json"; $headers = array( "Content-Type: application/json", "X-Tenant-Access-Key: ${tenant_access_key}", "X-Tenant-Access-Token: ${tenant_access_token}" ); $options = array( 'http' => array( 'header' => implode($headers, "\r\n"), 'method' => 'GET', 'content' => '{"page":1,"limit":25,"order":"id"}' ) ); $context = stream_context_create($options); $response = file_get_contents($uri, false, $context); print_r(json_decode($response, true));
require 'rest-client' require 'json' tenant_access_key = '...' tenant_access_token = '...' response = RestClient::Request.execute( :url => "https://cenit.io/api/v2/setup/plain_webhook.json", :method => 'GET', :payload => '{"page":1,"limit":25,"order":"id"}', :headers => { 'Content-Type' => 'application/json', 'X-Tenant-Access-Key' => tenant_access_key, 'X-Tenant-Access-Token' => tenant_access_token } ) puts JSON.parse(response.body)
import json from requests import Request, Session tenant_access_key = '...' tenant_access_token = '...' uri = 'https://cenit.io/api/v2/setup/plain_webhook.json' % (tenant_access_key, tenant_access_token) options = { 'headers': { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, 'data': json.dumps({"page":1,"limit":25,"order":"id"}) }; session = Session() request = Request('GET', uri, **options) prepped = request.prepare() response = session.send(prepped) print(response.json())
var request = require('request'), tenant_access_key = '...', tenant_access_token = '...', options = { method: 'GET', url: 'https://cenit.io/api/v2/setup/plain_webhook.json', headers: { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, json: true, qs: {"page":1,"limit":25,"order":"id"} }; request(options, function (error, response, data) { if (error) throw error; console.log(data); });
var tenant_access_key = '...', tenant_access_token = '...'; jQuery.ajax({ url: 'https://cenit.io/api/v2/setup/plain_webhook.json', method: 'GET', dataType: 'json', crossOrigin: true, headers: { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, data: {"page":1,"limit":25,"order":"id"}, success: function(data, textStatus, jqXHR) { console.log(data); } });
Create an Plain webhook:
Creates the specified Plain webhook. Any parameters not provided will be left unchanged.
post https://cenit.io/api/v2/setup/plain_webhook.json
tenant_access_key='...' tenant_access_token='...' curl -X POST \ -H "X-Tenant-Access-Key: ${tenant_access_key}" \ -H "X-Tenant-Access-Token: ${tenant_access_token}" \ -H "Content-Type: application/json" \ -d '{"creator_id":{},"updater_id":{},"tenant_id":{},"metadata":{},"authorization_id":{},"authorization_handler":false,"namespace":"","name":"","path":"","method":"","description":""}' \ "https://cenit.io/api/v2/setup/plain_webhook.json"
$tenant_access_key = '...'; $tenant_access_token = '...'; $uri = "https://cenit.io/api/v2/setup/plain_webhook.json"; $headers = array( "Content-Type: application/json", "X-Tenant-Access-Key: ${tenant_access_key}", "X-Tenant-Access-Token: ${tenant_access_token}" ); $options = array( 'http' => array( 'header' => implode($headers, "\r\n"), 'method' => 'POST', 'content' => '{"creator_id":{},"updater_id":{},"tenant_id":{},"metadata":{},"authorization_id":{},"authorization_handler":false,"namespace":"","name":"","path":"","method":"","description":""}' ) ); $context = stream_context_create($options); $response = file_get_contents($uri, false, $context); print_r(json_decode($response, true));
require 'rest-client' require 'json' tenant_access_key = '...' tenant_access_token = '...' response = RestClient::Request.execute( :url => "https://cenit.io/api/v2/setup/plain_webhook.json", :method => 'POST', :payload => '{"creator_id":{},"updater_id":{},"tenant_id":{},"metadata":{},"authorization_id":{},"authorization_handler":false,"namespace":"","name":"","path":"","method":"","description":""}', :headers => { 'Content-Type' => 'application/json', 'X-Tenant-Access-Key' => tenant_access_key, 'X-Tenant-Access-Token' => tenant_access_token } ) puts JSON.parse(response.body)
import json from requests import Request, Session tenant_access_key = '...' tenant_access_token = '...' uri = 'https://cenit.io/api/v2/setup/plain_webhook.json' % (tenant_access_key, tenant_access_token) options = { 'headers': { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, 'data': json.dumps({"creator_id":{},"updater_id":{},"tenant_id":{},"metadata":{},"authorization_id":{},"authorization_handler":false,"namespace":"","name":"","path":"","method":"","description":""}) }; session = Session() request = Request('POST', uri, **options) prepped = request.prepare() response = session.send(prepped) print(response.json())
var request = require('request'), tenant_access_key = '...', tenant_access_token = '...', options = { method: 'POST', url: 'https://cenit.io/api/v2/setup/plain_webhook.json', headers: { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, json: true, body: {"creator_id":{},"updater_id":{},"tenant_id":{},"metadata":{},"authorization_id":{},"authorization_handler":false,"namespace":"","name":"","path":"","method":"","description":""} }; request(options, function (error, response, data) { if (error) throw error; console.log(data); });
var tenant_access_key = '...', tenant_access_token = '...'; jQuery.ajax({ url: 'https://cenit.io/api/v2/setup/plain_webhook.json', method: 'POST', dataType: 'json', crossOrigin: true, headers: { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, data: JSON.stringify({"creator_id":{},"updater_id":{},"tenant_id":{},"metadata":{},"authorization_id":{},"authorization_handler":false,"namespace":"","name":"","path":"","method":"","description":""}), success: function(data, textStatus, jqXHR) { console.log(data); } });
Retrieve an existing Plain webhook:
Retrieves the details of an existing Plain webhook. You need only supply the unique Plain webhook identifier that was returned upon Plain webhook creation.
get https://cenit.io/api/v2/setup/plain_webhook/5b9c01bc25d98509ee00350b.json
tenant_access_key='...' tenant_access_token='...' curl -X GET \ -H "X-Tenant-Access-Key: ${tenant_access_key}" \ -H "X-Tenant-Access-Token: ${tenant_access_token}" \ -H "Content-Type: application/json" \ "https://cenit.io/api/v2/setup/plain_webhook/5b9c01bc25d98509ee00350b.json"
$tenant_access_key = '...'; $tenant_access_token = '...'; $uri = "https://cenit.io/api/v2/setup/plain_webhook/5b9c01bc25d98509ee00350b.json"; $headers = array( "Content-Type: application/json", "X-Tenant-Access-Key: ${tenant_access_key}", "X-Tenant-Access-Token: ${tenant_access_token}" ); $options = array( 'http' => array( 'header' => implode($headers, "\r\n"), 'method' => 'GET', ) ); $context = stream_context_create($options); $response = file_get_contents($uri, false, $context); print_r(json_decode($response, true));
require 'rest-client' require 'json' tenant_access_key = '...' tenant_access_token = '...' response = RestClient::Request.execute( :url => "https://cenit.io/api/v2/setup/plain_webhook/5b9c01bc25d98509ee00350b.json", :method => 'GET', :headers => { 'Content-Type' => 'application/json', 'X-Tenant-Access-Key' => tenant_access_key, 'X-Tenant-Access-Token' => tenant_access_token } ) puts JSON.parse(response.body)
from requests import Request, Session tenant_access_key = '...' tenant_access_token = '...' uri = 'https://cenit.io/api/v2/setup/plain_webhook/5b9c01bc25d98509ee00350b.json' % (tenant_access_key, tenant_access_token) options = { 'headers': { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, }; session = Session() request = Request('GET', uri, **options) prepped = request.prepare() response = session.send(prepped) print(response.json())
var request = require('request'), tenant_access_key = '...', tenant_access_token = '...', options = { method: 'GET', url: 'https://cenit.io/api/v2/setup/plain_webhook/5b9c01bc25d98509ee00350b.json', headers: { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, json: true, }; request(options, function (error, response, data) { if (error) throw error; console.log(data); });
var tenant_access_key = '...', tenant_access_token = '...'; jQuery.ajax({ url: 'https://cenit.io/api/v2/setup/plain_webhook/5b9c01bc25d98509ee00350b.json', method: 'GET', dataType: 'json', crossOrigin: true, headers: { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, success: function(data, textStatus, jqXHR) { console.log(data); } });
Update an Plain webhook:
Updates the specified Plain webhook. Any parameters not provided will be left unchanged.
post https://cenit.io/api/v2/setup/plain_webhook/5b9c01bc25d98509ee00350b.json
tenant_access_key='...' tenant_access_token='...' curl -X POST \ -H "X-Tenant-Access-Key: ${tenant_access_key}" \ -H "X-Tenant-Access-Token: ${tenant_access_token}" \ -H "Content-Type: application/json" \ -d '{"creator_id":{},"updater_id":{},"tenant_id":{},"metadata":{},"authorization_id":{},"authorization_handler":false,"namespace":"","name":"","path":"","method":"","description":""}' \ "https://cenit.io/api/v2/setup/plain_webhook/5b9c01bc25d98509ee00350b.json"
$tenant_access_key = '...'; $tenant_access_token = '...'; $uri = "https://cenit.io/api/v2/setup/plain_webhook/5b9c01bc25d98509ee00350b.json"; $headers = array( "Content-Type: application/json", "X-Tenant-Access-Key: ${tenant_access_key}", "X-Tenant-Access-Token: ${tenant_access_token}" ); $options = array( 'http' => array( 'header' => implode($headers, "\r\n"), 'method' => 'POST', 'content' => '{"creator_id":{},"updater_id":{},"tenant_id":{},"metadata":{},"authorization_id":{},"authorization_handler":false,"namespace":"","name":"","path":"","method":"","description":""}' ) ); $context = stream_context_create($options); $response = file_get_contents($uri, false, $context); print_r(json_decode($response, true));
require 'rest-client' require 'json' tenant_access_key = '...' tenant_access_token = '...' response = RestClient::Request.execute( :url => "https://cenit.io/api/v2/setup/plain_webhook/5b9c01bc25d98509ee00350b.json", :method => 'POST', :payload => '{"creator_id":{},"updater_id":{},"tenant_id":{},"metadata":{},"authorization_id":{},"authorization_handler":false,"namespace":"","name":"","path":"","method":"","description":""}', :headers => { 'Content-Type' => 'application/json', 'X-Tenant-Access-Key' => tenant_access_key, 'X-Tenant-Access-Token' => tenant_access_token } ) puts JSON.parse(response.body)
import json from requests import Request, Session tenant_access_key = '...' tenant_access_token = '...' uri = 'https://cenit.io/api/v2/setup/plain_webhook/5b9c01bc25d98509ee00350b.json' % (tenant_access_key, tenant_access_token) options = { 'headers': { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, 'data': json.dumps({"creator_id":{},"updater_id":{},"tenant_id":{},"metadata":{},"authorization_id":{},"authorization_handler":false,"namespace":"","name":"","path":"","method":"","description":""}) }; session = Session() request = Request('POST', uri, **options) prepped = request.prepare() response = session.send(prepped) print(response.json())
var request = require('request'), tenant_access_key = '...', tenant_access_token = '...', options = { method: 'POST', url: 'https://cenit.io/api/v2/setup/plain_webhook/5b9c01bc25d98509ee00350b.json', headers: { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, json: true, body: {"creator_id":{},"updater_id":{},"tenant_id":{},"metadata":{},"authorization_id":{},"authorization_handler":false,"namespace":"","name":"","path":"","method":"","description":""} }; request(options, function (error, response, data) { if (error) throw error; console.log(data); });
var tenant_access_key = '...', tenant_access_token = '...'; jQuery.ajax({ url: 'https://cenit.io/api/v2/setup/plain_webhook/5b9c01bc25d98509ee00350b.json', method: 'POST', dataType: 'json', crossOrigin: true, headers: { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, data: JSON.stringify({"creator_id":{},"updater_id":{},"tenant_id":{},"metadata":{},"authorization_id":{},"authorization_handler":false,"namespace":"","name":"","path":"","method":"","description":""}), success: function(data, textStatus, jqXHR) { console.log(data); } });
Delete an existing Plain webhook:
Permanently deletes an existing Plain webhook. It cannot be undone.
delete https://cenit.io/api/v2/setup/plain_webhook/5b9c01bc25d98509ee00350b.json
tenant_access_key='...' tenant_access_token='...' curl -X DELETE \ -H "X-Tenant-Access-Key: ${tenant_access_key}" \ -H "X-Tenant-Access-Token: ${tenant_access_token}" \ -H "Content-Type: application/json" \ "https://cenit.io/api/v2/setup/plain_webhook/5b9c01bc25d98509ee00350b.json"
$tenant_access_key = '...'; $tenant_access_token = '...'; $uri = "https://cenit.io/api/v2/setup/plain_webhook/5b9c01bc25d98509ee00350b.json"; $headers = array( "Content-Type: application/json", "X-Tenant-Access-Key: ${tenant_access_key}", "X-Tenant-Access-Token: ${tenant_access_token}" ); $options = array( 'http' => array( 'header' => implode($headers, "\r\n"), 'method' => 'DELETE', ) ); $context = stream_context_create($options); $response = file_get_contents($uri, false, $context); print_r(json_decode($response, true));
require 'rest-client' require 'json' tenant_access_key = '...' tenant_access_token = '...' response = RestClient::Request.execute( :url => "https://cenit.io/api/v2/setup/plain_webhook/5b9c01bc25d98509ee00350b.json", :method => 'DELETE', :headers => { 'Content-Type' => 'application/json', 'X-Tenant-Access-Key' => tenant_access_key, 'X-Tenant-Access-Token' => tenant_access_token } ) puts JSON.parse(response.body)
from requests import Request, Session tenant_access_key = '...' tenant_access_token = '...' uri = 'https://cenit.io/api/v2/setup/plain_webhook/5b9c01bc25d98509ee00350b.json' % (tenant_access_key, tenant_access_token) options = { 'headers': { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, }; session = Session() request = Request('DELETE', uri, **options) prepped = request.prepare() response = session.send(prepped) print(response.json())
var request = require('request'), tenant_access_key = '...', tenant_access_token = '...', options = { method: 'DELETE', url: 'https://cenit.io/api/v2/setup/plain_webhook/5b9c01bc25d98509ee00350b.json', headers: { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, json: true, }; request(options, function (error, response, data) { if (error) throw error; console.log(data); });
var tenant_access_key = '...', tenant_access_token = '...'; jQuery.ajax({ url: 'https://cenit.io/api/v2/setup/plain_webhook/5b9c01bc25d98509ee00350b.json', method: 'DELETE', dataType: 'json', crossOrigin: true, headers: { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, success: function(data, textStatus, jqXHR) { console.log(data); } });
Retrieve one attribute of an existing Plain webhook:
Retrieves one attribute of an existing Plain webhook.
get https://cenit.io/api/v2/setup/plain_webhook/5b9c01bc25d98509ee00350b/{view}.json
tenant_access_key='...' tenant_access_token='...' view='...' curl -X GET \ -H "X-Tenant-Access-Key: ${tenant_access_key}" \ -H "X-Tenant-Access-Token: ${tenant_access_token}" \ -H "Content-Type: application/json" \ "https://cenit.io/api/v2/setup/plain_webhook/5b9c01bc25d98509ee00350b/${view}.json"
$tenant_access_key = '...'; $tenant_access_token = '...'; $view = '...'; $uri = "https://cenit.io/api/v2/setup/plain_webhook/5b9c01bc25d98509ee00350b/${view}.json"; $headers = array( "Content-Type: application/json", "X-Tenant-Access-Key: ${tenant_access_key}", "X-Tenant-Access-Token: ${tenant_access_token}" ); $options = array( 'http' => array( 'header' => implode($headers, "\r\n"), 'method' => 'GET', ) ); $context = stream_context_create($options); $response = file_get_contents($uri, false, $context); print_r(json_decode($response, true));
require 'rest-client' require 'json' tenant_access_key = '...' tenant_access_token = '...' view = '...' response = RestClient::Request.execute( :url => "https://cenit.io/api/v2/setup/plain_webhook/5b9c01bc25d98509ee00350b/#{view}.json", :method => 'GET', :headers => { 'Content-Type' => 'application/json', 'X-Tenant-Access-Key' => tenant_access_key, 'X-Tenant-Access-Token' => tenant_access_token } ) puts JSON.parse(response.body)
from requests import Request, Session tenant_access_key = '...' tenant_access_token = '...' view = '...' uri = 'https://cenit.io/api/v2/setup/plain_webhook/5b9c01bc25d98509ee00350b/%s.json' % (tenant_access_key, tenant_access_token, view) options = { 'headers': { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, }; session = Session() request = Request('GET', uri, **options) prepped = request.prepare() response = session.send(prepped) print(response.json())
var request = require('request'), tenant_access_key = '...', tenant_access_token = '...', view = '...', options = { method: 'GET', url: 'https://cenit.io/api/v2/setup/plain_webhook/5b9c01bc25d98509ee00350b/${view}.json', headers: { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, json: true, }; request(options, function (error, response, data) { if (error) throw error; console.log(data); });
var tenant_access_key = '...', tenant_access_token = '...', view = '...'; jQuery.ajax({ url: 'https://cenit.io/api/v2/setup/plain_webhook/5b9c01bc25d98509ee00350b/${view}.json', method: 'GET', dataType: 'json', crossOrigin: true, headers: { 'Content-Type': 'application/json', 'X-Tenant-Access-Key': tenant_access_key, 'X-Tenant-Access-Token': tenant_access_token }, success: function(data, textStatus, jqXHR) { console.log(data); } });
Basic info
- Namespace
- Google Sheets API v4
- Name
- POST V4 Spreadsheets
- Path
- /v4/spreadsheets
- Method
- post
- Description
- Creates a spreadsheet, returning the newly created spreadsheet.
- Metadata
- Id
- 5b9c01bc25d98509ee00350b
- Created at
- September 14, 2018 18:45
- Updated at
- October 01, 2018 19:37
Parameters & Headers
- Parameters
-
Name Value Description Metadata Updated at access_token - OAuth access token. September 20, 2018 20:49 prettyPrint true Returns response with indentations and line breaks. September 20, 2018 20:49 key - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. September 20, 2018 20:49 quotaUser - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. September 20, 2018 20:49 pp true Pretty-print response. September 20, 2018 20:49 fields - Selector specifying which fields to include in a partial response. September 20, 2018 20:49 alt json Data format for response. September 20, 2018 20:49 $.xgafv - V1 error format. September 20, 2018 20:49 callback - JSONP September 20, 2018 20:49 oauth_token - OAuth 2.0 token for the current user. September 20, 2018 20:49 uploadType - Legacy upload protocol for media (e.g. "media", "multipart"). September 20, 2018 20:49 bearer_token - OAuth bearer token. September 20, 2018 20:49 upload_protocol - Upload protocol for media (e.g. "raw", "multipart"). September 20, 2018 20:49 13 Parameters