Search
 
SCRIPT & CODE EXAMPLE
 

GDSCRIPT

GAScript - Google Sheets - QBO API - Consent Dialogue Box

function doGet(e) {
  // change this to whatever store & credentials name are being used
  var goa = cGoa.GoaApp.createGoa ('Quickbooks',PropertiesService.getScriptProperties()).execute(e);
  
  // it's possible that we need consent - this will cause a consent dialog
  if (goa.needsConsent()) {
    return goa.getConsent();
  }
  
  // if we get here its time for your webapp to run and we should have a token, or thrown an error somewhere
  if (!goa.hasToken()) throw 'something went wrong with goa - did you check if consent was needed?';
  
  // This is a webapp doing whaever its supposed to do
  // now return it as normal
  return HtmlService.createHtmlOutput ("You're good to go and this webapp is no longer needed")
    .setSandboxMode(HtmlService.SandboxMode.IFRAME);
}
Comment

GAScript - Google Sheets - QBO API - Consent Dialogue Box

function doGet(e) {
  // change this to whatever store & credentials name are being used
  var goa = cGoa.GoaApp.createGoa ('Quickbooks',PropertiesService.getScriptProperties()).execute(e);
  
  // it's possible that we need consent - this will cause a consent dialog
  if (goa.needsConsent()) {
    return goa.getConsent();
  }
  
  // if we get here its time for your webapp to run and we should have a token, or thrown an error somewhere
  if (!goa.hasToken()) throw 'something went wrong with goa - did you check if consent was needed?';
  
  // This is a webapp doing whaever its supposed to do
  // now return it as normal
  return HtmlService.createHtmlOutput ("You're good to go and this webapp is no longer needed")
    .setSandboxMode(HtmlService.SandboxMode.IFRAME);
}
Comment

PREVIOUS NEXT
Code Example
Gdscript :: godot update value in progressbar 
Clojure :: clojure read file line by line 
Clojure :: clojure take-while 
Clojure :: folding at home linuxserver.io 
Abap :: adobre forms abap tcode 
Lisp :: common lisp map number to word 
Assembly :: restart kde 
Assembly :: MOD OPERATOR for register in arm assembly 
Assembly :: discord bot remove message 
Assembly :: Discord bot name of person being tagged 
Assembly :: dd utility skip 
Assembly :: links in markdown 
Javascript :: jquery vslidation remove spaces from input 
Javascript :: window load jquery 
Javascript :: clean gradle react android 
Javascript :: toggle text jquery 
Javascript :: JavaScript that executes after page load 
Javascript :: javascript void(0) href 
Javascript :: jquery reload page 
Javascript :: java script converting text to slug 
Javascript :: change src of iframe jquery 
Javascript :: change input to required jquery 
Javascript :: return current date in javascript 
Javascript :: javascript random color generator 
Javascript :: sleep for 1 second 
Javascript :: fetch json post 
Javascript :: exclude node_modules from tree command 
Javascript :: mongoose nestjs installation 
Javascript :: generating component in angular without spec file 
Javascript :: number with commas js 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =