Pipe url parameter into Google Forms - google-forms

I'm trying to pipe a url parameter such that it appears in a question on a Google Forms. For example, the interaction would be:
url= https://..../variable=[word]
And then one of the questions in the Google Form would be:
What do you think about [word]?
Is this possible?

Google Forms doesn't include built-in functions to do something like that. One alternative is to use Google Apps Script and the HTMLService to build your own form. To learn about this see https://developers.google.com/apps-script/guides/html/

Related

Which HTTP method to use for Google Cloud Printing?

https://developers.google.com/cloud-print/docs/appInterfaces#submit
In this documentation, several endpoints for Google Cloud Printing are presented. However, at no place is it explained which HTTP method to use, as in GET, POST, etc. How can one know which one to use? I'm specifically looking to use /submit and /search parameters.
From the page you link to:
Calling Syntax To use the interfaces, you need to prepend the Google
Cloud Print URL https://www.google.com/cloudprint to the interface
names, for example https://www.google.com/cloudprint/submit.

How do I create a reminder using Google Calendar API?

In the regular web UI for Google Calendar, when I add an event, I can choose to make it a "reminder", rather than an "event".
I'm trying to replicate that with the Python API, but can't seem to find info on how to do that. All the documentation I'm finding pertains to reminders on events (i.e. "remind half an hour before the event"), rather than the "pure" reminders.
How does one add just a pure reminder?
Adding Reminders is not currently possible.
As Aaron suggested, there's an official Feature Request that can be upvoted.
I created a simple tool that does exactly that: google-reminders-cli
I have translated Jona's https://github.com/jonahar/google-reminders-cli from Python to:
JavaScript: https://github.com/Jinjinov/google-reminders-js
PHP: https://github.com/Jinjinov/google-reminders-php

How To Specify the fields to Wordpress API v2

I'm using the WordPress REST API in my project and sending a GET request to:
http://myblog/wp-json/wp/v2/posts
and It's working quite alright but I want to specify the fields though I don't know how. I have looked at the documentation and still don't know how to go about it. For example, using the public API:
https://public-api.wordpress.com/rest/v1.1/sites/www.mysite.com/posts?number=100&fields=title,excerpt,featured_image
returns only the specified fields. How do I this with the v2 API?
Here's how to access the a list of titles and excerpts using REST API v2:
https://www.example.com/wp-json/wp/v2/posts?_fields[]=title&_fields[]=excerpt&per_page=100&offset=100
https://developer.wordpress.org/rest-api/extending-the-rest-api/modifying-responses/
As it states there, the REST API v2 returns a certain set of default fields, and if you want different ones, then you have to implement this as described in that document.
The easy solution to this issue would be to use the ACF to REST API or an equivalent plugin that can extend the REST API for you. I have used this plugin on many sites successfully.
If this is not possible then you will need to modify the response as has been outlined by other answers. You can read more about that here.
You can use ?_fields[]=title&_fields[]=excerpt

Getting a Track from a Spotify ID using the libspotify,dll

I can find tracks using the libspotify.dll just fine.
But if I have a Spotify Id like: 7KEYPk9d9hc1rrHVmztrUS. It does not matter if I set "track:" in front.
Actually I am using a .Net wrapper of the dll but that does not give me any results when I give it the Id.
Well. By the way LibSpotify is obsolete. But back to your problem:
If you have a look at their 'new' Web API there is a way to use a search feature (you do not need authorization for this)
https://api.spotify.com/v1/tracks/7KEYPk9d9hc1rrHVmztrUS
Related to LibSpotify I just found an example
https://developer.spotify.com/docs/libspotify/12.1.51/search_8c-example.html

Create own customed URL shortener

I am currently trying to code out a simple asp.net URL shortener which allows me to customise the shortened url. I am also not allowed to use open source, which means I cannot use any of the url shortening services. I am required to develop on on my own.
But this is the first time I am doing this so i have no idea on how to start(excluding the UI).
I understand that there are already such questions being asked. But I've read through the posts and I couldn't understand what is it about. I've also tried to google for the solution but it doesn't seem to be working.
I would really appreciate any help given to me.
P.S I am fairly new in programming and not strong in any of the programming languages.
You would need:
A system to store pairs of shortened URLs and their full version.
A page which takes the shortened URL parameter (eg. short.aspx?q=SHORTENED), looks it up in your data store, and redirects to the full URL.
Some interface to edit your data store, add new URLs, etcetera.
That should be it really. If this is too difficult, it might be smarter to start on a basic programming course first.

Resources