Is it possible to Add Attachments with a Google Calendar Addon using Alternate runtime - google-workspace-add-ons

I've been trying to Add Attachments with a Google Calendar Addon using alternate runtimes (Not App scripts), but it seem it's either not documented anywhere or it's just impossible to do.
I'm wondering if anyone knows how this can be done returning proper JSON response from an alternate runtime, or is App Scripts the only option for adding attachments?
Thanks.

It should be possible to create Add ons with other runtimes as suggested by their official documentation.
There is also a quickstart that you can take a reference on how to create the add-on.
From the Calendar API events creation to add attachment it only supports Drive files. Sample codes in other languages on how to add the Drive files can be found here. There is also a thread utilizing Python and also wondering about the process of adding attachments.
Edit:
Would be a good idea to request a feature like that or update to the documentation for supported options:
https://developers.google.com/calendar/api/support

Related

Google Tag Manager purpose on iOS

Can somebody please explain me what is the purpose of using Google Tag Manager (GTM) on an iOS app?
Currently I am working on an app which part of the legacy configuration resides on GTM but I cannot find any purpose of this.
I've read the documentation but I find it very confusing.
It mentions to add GoogleTagManager pod, add the json corresponding to your container and "preview" it with a Custom URL Schema.
The things that I dont understand are:
Why adding GoogleTagManager pod if you are not using it in your app, there is no import or anything like that
Why download the container (json file) and add it into your project. Based on the documentation, it doesnt mention anything about linking this json file with your actual xcode project.
How by using a custom URL Schema will test your container? On the documentation doesnt mention anything about handling this custom URL schema.
So based on the documentation I dont find any purpose of using GTM at all. The thing that for me makes sense is when login an event using Google Analytics, by calling Analytics.logEvent..., but this is Google Analytics, not GTM.
I will appreciate if someone can provide some information about this.
Thanks in advance.
Google Tag Manager is used, when you want to change some custom event data on the build which is already live(on App store) and you don't want to resubmit the new build just for the event. For more details you can refer this link.

Rich link preview in flutter

Is it possible to make a preview from an url, grabbing all the information such as title, relevant texts and images. Is there any plugins I can use readily?
See this Native android plugin
You can do this way :
1)Create a user at https://www.linkpreview.net
2)Generate an Access Key.
3)From your code call
http://api.linkpreview.net/?key=<Your_API_KEY_From_Step_2>&q=https://www.google.com
It returns the meta tags in JSON as below :
{"title":"Google","description":"Search the world's information, including webpages, images, videos and more. Google has many special features to help you find exactly what you're looking for.","image":"http:\/\/www.google.com\/images\/branding\/googlelogo\/1x\/googlelogo_white_background_color_272x92dp.png","url":"https:\/\/www.google.com\/"}
4) Use it in flutter widget to create a preview.
Hope I'm not late to answer this question, There is a plugin for link with previews Rich link preview
Currently, there is not an open source library for flutter providing these meta tags for a website.
There is a temporal solution, using these freemium APIs for getting this information. The main drawback is that the requests are limited before paying.
I know I'm a bit late but I found a solution for that.
The comment of Sudip might work but if you have a lot of preview to generate, you will have to subscribe and pay..
I couldn't use the library rich_link_preview because of some depency issues (it requires http < 1.12.0).
So I had to do it myself. Writting the complete answer in this comment would be too long so I'll tell you how I did it.
I followed this youtube tutorial. If you are too lazy to watch the entire video you can look at his Github Repo. It worked for me and it is not too long (there are only 2 relevant files):
lib/link_preview.dart
lib/helper/fetch_preview.dart

Does Google Dataflow supports creating .zip (not .gz) file?

I am using google dataflow 1.9.1. Does Google Dataflow supports creating .zip (not .gz) file. I dont see an option in the api docs for .zip generation.
I see an enum, and the comments in TextIO.java suggest .withCompression should work. Alas, I don't see the .withCompression method. I have filed a JIRA to track.

Choose a tools to documents REST API

I actually use Doxygen to document my php REST application and I just discover Apiary & Swagger witch seem to be good tools to document API...I want to know if there is a way to generate documentation automatically using one of this tools (apiary or swagger ) based on the code comments?
Using swagger-php you can generate the documentation automatically from a collection of php scripts documented using annotations.
Swagger-PHP is decently documented here: http://zircote.com/swagger-php/
A working example can be found on github: https://github.com/zircote/swagger-php/tree/master/Examples/Petstore
Regarding the generation of the json file containing the documentation check my answer here: https://stackoverflow.com/a/31178997/2853903

Exporting files from a Javascript based phonegap app - options or ideas?

I'm currently writing a mobile app (hopefully iOS or android) using the jquery mobile framework and phonegap.
It'll need to export/send csv files in some way to the users, but I'd be interested to hear ideas or suggestions about the best way of doing so. If this can be done on the js side of the app that'd be ideal as it's what I'm most familiar with. A couple of options I've considered are:
Uploading the file using the google docs api
Writing the file to the file system (then export e.g. via iTunes)
I'm new to this so any suggestions gratefully received! Thanks for your help
There are a few options that you could use depending on how you want it to work.
The main options would be to
Use the File API (http://docs.phonegap.com/phonegap_file_file.md.html#File) to store files on the filesystem of the device.
Upload the file to a server using a standard XMLHttpRequest.
Write a native PhoneGap plugin on each platform that you are interested in that could connect to Google docs.
As Dave pointed out you can write files with the FILE API. I have used the file api on iOs to write custom log files and havent found any yikes so far.

Resources