API • Updated 5 years ago
Download Shortcut Add to Collection Like (5328)ShareShortcuts Member:
GoogleKit was designed to simplify the way your Shortcuts connect to the Google API.
Powered by Google
Graphics by MediaKit
Note: Instructions on how to configure this Shortcut are below. If you experience issues or require any assistance, don’t hesitate to contact me via Reddit.
This shortcut was designed to remove some of the bloat from Shortcuts that utilise the Google API (as well as remove some of the headache). When you implement GoogleKit, you’ll be able to remove over 200 Actions (per Shortcut) and still ensure you’re receiving an active Access Token.
GoogleKit (once setup), will allow access to all of the Google API calls as well are check the Access Token each time your Shortcut is run to make sure it’s still active. If it’s no longer active, it will automatically refresh with the API to make sure everything runs smoothly.
Thanks to GoogleKit, implementing the Google API won’t be as tedious as before. If we wanted to publish a Shortcut that used Google’s API, I found the daily quota to be very low and easily hit. Now thanks to this Shortcut, every user will have their on indicidual quota! This means if one person hits the quota, the service won’t be down for everybody.
Tip: Follow each step to the letter, this is to minimise the risk of you encountering any issues.
Visit THIS link to the Google Developer Console.
Create a new project and call it ”Shortcuts”.
Visit THIS link to the Google API Credentials page.
Type “Shortcuts” in ”Application Name” and save it.
Visit THIS link to the Google oAuth page.
Select “Web Application” and type “http://localhost/“ (lowercase) into the ”Authorised Redirect URI” box, then create the application.
Download and run the ”GoogleKit”Shortcut, you will be guided through the rest of the setup from there.
Done.
Tip: Follow the instructions below each time you install a GoogleKit compatible Shortcut.
Install a GoogleKit compatible Shortcut such as ”YouTube Manager”.
Run the new Shortcut once before running ”GoogleKit”.
Head into ”Settings” and tap on ”Add API”.
Tap on the new Shortcut and Enable all of the listed API’s.
Head into ”Settings” and tap on ”Grant Scope”.
Tap on the new Shortcut and Enable all of the listed Scopes.
Done.
Implementation of GoogleKit couldn’t be easier, all it requires from you is around 7 Actions in total placed near the top of your Shortcut. After you add them, you are good to go.
I do however, highly recommend that you inform people when they run your Shortcut to check GoogleKit for your required Scopes / API’s.
GoogleKit can fetch the latest Access Token for you, all this takes is placing 3 Actions near the top of your Shortcut.
If you need to set a list of required API’s for your Shortcut, all you need to do is add 2 Actions after Access Token.
If you’re using an API that requires sensitive data, the user will need to grant access to the Scopes you’re using. If you need to set a list of required Scopes for your Shortcut, all you need to do is add 2 more Actions after Access Token.
Extensions:
Siri is supported
ShareSheet is supported
Widget is supported