Apps-Script-GSApp-Library | Google Service Account Library for Apps Script
kandi X-RAY | Apps-Script-GSApp-Library Summary
kandi X-RAY | Apps-Script-GSApp-Library Summary
Google Service Account Library for Apps Script
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Apps-Script-GSApp-Library
Apps-Script-GSApp-Library Key Features
Apps-Script-GSApp-Library Examples and Code Snippets
Community Discussions
Trending Discussions on Apps-Script-GSApp-Library
QUESTION
I confirmed authorization with service account on GAS. "list" is work, but "run" method never work. Error msg is "source must not be empty". What kind of json should I attach?
This is on standalone GAS using GSApp library. (Apps-Script-GSApp-Library : MJ5317VIFJyKpi9HCkXOfS0MLm9v2IJHf)
...ANSWER
Answered 2019-Aug-14 at 11:01UrlFetchApp.fetch()
does not recognize "source" as a valid property. Use "payload" instead. Also you'll need to JSON.stringify()
your payload and set the contentType
property as application/json
as follows:
QUESTION
I am having difficulty using the FirebaseApp (a 3rd party API) to generate an authentication token that can be passed to a sidebar and used by the client to login and access my Firebase Database client-side.
I'm trying to use this tutorial but cannot get it working without using a database secret (which is being depreciated) in makeToken()
. I'd prefer to use a service account as reflected in this tutorial. When I look at the difference between the tokens generated, the first 2 pieces separated by a '.' are identical, the last piece after the final '.' is different. The lengths are the same as well. eg:
ANSWER
Answered 2019-Feb-10 at 16:33Alright, so after a very long day I figured it out. I'm going to lay out what I ended up using for libraries and what the issue was (see the third library). The main problem was essentially that the tutorial was outdated and no a lot of people use Firebase in apps script.
OAuth2 (Server-side) Link
I didn't have to change anything here! It was working fine and never an issue.
FirebaseApp (Server-side) Link
This is a nice library and I stuck with it because it worked well (once I got it there). I had to make a change to my original code that came from the tutorial I mentioned. My code ended up like this and worked:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Apps-Script-GSApp-Library
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page