Firebase dynamic links - custom suffix - firebase

I made a simple python script to generate firebase dynamic links for my app using POST API
https://firebase.google.com/docs/dynamic-links/rest
However, in web UI I can set custom link address (i.e. example.app.goo.gl/customlinkname), while using API address seems to be always auto-generated.
Is there such a feature using POST API?
I tried to set "option": CUSTOM with customSuffix parameter, however response was that option CUSTOM is not supported.

Nope -- this feature is not available using the REST or Client SDKs. Only for Dynamic Links that you create using the Firebase Console.

Related

Can you submit a Restful request to a google forms api?

I want to use google forms to collect questionnaire responses but with a much more custom UI for doing so. Is there a way to send in responses from my custom application to my google forms api?
You can use the endpoint to fill the google form directly.
Steps -:
Create a google sheet.
Click on the Tool menu to create a google form.
Then create some google forms fields.
Now in the right top corner click on the 3 dots and select the Pre-fields link form.
Fill the info and click on the Get link and copy the link
Now you have a URL with the endpoints like this
Endpoints are
entry.1651815625.
entry.952362665
Google Sheet Link for Form -: "https://docs.google.com/forms/d/e/1FAIpQLSfxoz5dqXC-_LoGJWZCPasww6woHcOl0s48PYcCj-72uUJoBQ/viewform?usp=pp_url&entry.1651815625=Radha&entry.952362665=Krishna"
To Convert this link to this way
"https://docs.google.com/forms/d/e/1FAIpQLSfssz5dqXC-_LoGJWZCP93ww6woHcOl0s48PYcCj-72uUJoBQ/formResponse?&submit=Submit?usp=pp_url&entry.1651815625=Radha&entry.952362665=Krishna"
Instead of "viewform" you have to write "formResponse?&submit=Submit"
Now you can pass your own value and hit this URL to submit your google form directly.
For more info, you can watch this video from The Coding Bus
https://youtu.be/PVM7h5QCnnM
If you want to update the form's layout, it is possible to update it from your application using the Google Forms API. However, the Google Forms API currently does not support sending responses to your form, as shown here
At this time the Google Forms REST API doesn't support creating form responses as the Form.responses resource only includes two methods: get and list. Ref. https://developers.google.com/forms/api/reference/rest/v1/forms.responses?hl=en
You might use the Forms Service from Google Apps Script to create Google Forms Responses programmatically. To call this service from your app you might create a web-app in order have a HTTP GET / POST request end-point or use the Google Apps Script REST API.
Another option might be to use a "hack" to emulate the Google Forms POST request. See Auto-Fill or automate a Google Form
Related
Is it possible to 'prefill' a google form using data from a google spreadsheet?
how to create a google form response with app script
Load form responses with script in sheet - Create initial forms with nothing but an ID number

How can I set 'Calendar based room release' via google api

I am creating a room resource via the Google Workspace Admin API. However there is no parameter to specify the Calendar-based room release. It is alway set to Off but I would like to have it set to On.
Is there anyway to do that with any Google API?
Issue:
Currently, you can only turn room releases on or off via Admin console. This is not possible via Directory API in the current implementation.
File a feature request:
I'd suggest you to file a feature request in Issue Tracker (here is the corresponding template), if you think this functionality could be useful.
Update - Feature request filed:
Room release parameter for ressources can not be changed via Directory API
Reference:
Free unused Google Calendar meeting rooms
REST Resource: resources.calendars

TeamDrive Notification Using Google admin SDK for reports having issue with owner_is_team_drive flag

I'm using the documentation https://developers.google.com/admin-sdk/reports/v1/guides/push#making-watch-requests for creating the channel for team drive for google using google reports API. According to the document, we can make channel depending upon various filter conditions. For my purpose, I choose to use the filter "owner_is_team_drive==true". The problem with using this filter is that a channel gets created properly (I get a channel object in return) but the notification doesn't come if I perform any action.
I'm using Google Admin SDK for reports for creating the request for the channel. While looking at the logs I found that the API being used to hit the request is https://www.googleapis.com/admin/reports/v1/activity/users/all/applications/drive?filters=owner_is_team_drive%3D%3Dtrue
PS: I tried using other filters(like "doc_type==team_drive") and also the API without filters, I get the notification properly.

TeamDrive Notification Using Google admin SDK for reports

I'm using the documentation https://developers.google.com/admin-sdk/reports/v1/guides/push#making-watch-requests for creating the channel for team drive for google using google reports API. According to the document, we can make channel depending upon various filter conditions. For my purpose, I choose to use the filter "owner_is_team_drive==true". The problem with using this filter is that a channel gets created properly (I get a channel object in return) but the notification doesn't come if I perform any action.
I'm using Google Admin SDK for reports for creating the request for the channel. While looking at the logs I found that the API being used to hit the request is https://www.googleapis.com/admin/reports/v1/activity/users/all/applications/drive?filters=owner_is_team_drive%3D%3Dtrue
PS: I tried using other filters(like "doc_type==team_drive") and also the API without filters, I get the notification properly.

How to edit deep link parameter in Firebase Dynamic link

Is there a REST API to update the Deep link property of Firebase DynamicLink?
The Google guide only shows the process to create a short link
, but there is no mention of how to update the deeplink once created.
Edit from Cyril DD :
Using the Firebase website, it's possible to update a dynamic Link and when looking at the network tabs in the console, it calls an API https://firebasedurablelinks-pa.clients6.google.com/v1/updateDurableLink where it's possible to completely update the properties of an existing dynamic link.
But then I'm left with two problems:
I can't see to figure out a way to make this request work in Postman
I need to update a link that was generated with the https://firebasedynamiclinks.googleapis.com/v1/shortLinks API, and therefore does not appear in the list of links in the firebase console
This is an intended behavior, but is a known feature request. Short Dynamic Links created programmatically are designed to be shared peer to peer and isn't meant to be modified later on.
The only way to edit short Dynamic Links is through the Firebase console since short links created through the console are likely to be used in campaigns.
If you have more inputs regarding this function, you can file it as a feature request here https://firebase.google.com/support

Resources