Has anyone here make a google cloud API key?

505 views
Skip to first unread message

Logan Fury

unread,
Jan 28, 2020, 5:44:33 AM1/28/20
to Tasker
Hello All,

Im trying to use a Task as Joao composed it, rather than relying on SAY. It calls for WaveNet TTS from google cloud, which requires a cloud API key to access thru tasker.

Ive made a project, and done every single credential requirement I could but I cannot figure out the key generation. Their help pages show this:

Creating an API key

You can create a new API key using the CreateKey method. The method takes an ApiKey object as a parameter. The only ApiKey fields that you can specify when you call CreateKey are displayName and restrictions. The following example creates an API key with no restrictions:


gcurl https://apikeys.googleapis.com/v2beta1/projects/PROJECT_NUMBER/keys -X POST -d '{"displayName" : "Example API key"}'
This came from https://cloud.google.com/api-keys/docs/create-delete-api-keys#create
This would seem pretty straight forward except that I have the faintest idea what the crap a gcurl is or how to use it.
I found my project number and placed that in the above string and lauched everything from the https in my browser but it just came up a google 404
Can anyone help with this?
Thank you,
Logan

João Dias

unread,
Jan 28, 2020, 8:08:04 AM1/28/20
to tas...@googlegroups.com
Hi. Did you follow the instructions in the action's help page? :) It says how to get the key right there...

Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias


Logan Fury

unread,
Jan 28, 2020, 8:14:54 AM1/28/20
to tas...@googlegroups.com
I looked over the page again and the only thing on it that makes sense to me is:

The page uses curl with the oauth2l command-line tool to send requests to the API key methods. See Getting started with the API keys API for details on getting set up to experiment with the API. 

gonna see if this is the solution 

--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/u0bwCmO8w4E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/CAG6Z%2BFf78LxPswzdkpGKOjeg1ketMcFxDupyMq-wUk2aBxejWA%40mail.gmail.com.

Logan Fury

unread,
Jan 28, 2020, 8:29:10 AM1/28/20
to tas...@googlegroups.com
Ive installed google cloud.  Ive managed to activate the cloud shell. Everything goes to crap at this point >.<

"

Sending a key combination using the console

Click the Send Key Combination button Send Key Combination Button and select Ctrl + V to paste the contents of your clipboard at your current cursor location."

This did not work

so I typed in: gcurl https://apikeys.googleapis.com/v2beta1/projects/mykeyhere/keys -X POST -d '{"displayName" : "Example API key"}'

and the return was "cannot write to apikeys.googleapis.com"

I read to the bottom of the page and see nothing that I can understand to help me.


Can I get a hint what to do from here please?


Logan Fury

unread,
Jan 28, 2020, 8:36:26 AM1/28/20
to tas...@googlegroups.com
Now im somehow at a mode choice page faced with native mode or datastore mode. The documentation seems to point web based projects at Native mode but it says the choice is irrevocable so I hesitate to choose without advice. 

Can anyone clarify?

João Dias

unread,
Jan 28, 2020, 8:48:52 AM1/28/20
to tas...@googlegroups.com
Sorry I meant this page: https://tasker.joaoapps.com/userguide/en/help/ah_say_wavenet.html
You don't need all of that complicated stuff at all :D

Logan Fury

unread,
Jan 28, 2020, 8:50:35 AM1/28/20
to tas...@googlegroups.com
Bless you!

Hitting your URL now. Please Stand By for next update....

--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/u0bwCmO8w4E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.

Logan Fury

unread,
Jan 28, 2020, 8:58:41 AM1/28/20
to tas...@googlegroups.com
WOOT!!! I have a key. Just waiting the 5 mins for it to activate and then im testing your routine for hands-free voice command control of SMS replies :D

Thank you very much Joao, that page you made was a godsend compared to what the Cloud was trying to make me do!!

Logan Fury

unread,
Jan 28, 2020, 9:07:13 AM1/28/20
to tas...@googlegroups.com
Working like a charm! 

Thank you so much Joao. We can stick a fork in this and move on to the next catastrophe :D

Logan

João Dias

unread,
Jan 28, 2020, 9:19:58 AM1/28/20
to tas...@googlegroups.com
Glad it works :) Just for the record, that same link I sent you is available in the Say Wavenet action if you click the (?) button on the top right :) That's what I meant by "action's help page".

James Monk

unread,
Jan 30, 2020, 10:47:58 PM1/30/20
to Tasker
Could you put a link to the task you are referring to please?

Logan Fury

unread,
Jan 30, 2020, 11:28:37 PM1/30/20
to tas...@googlegroups.com
Good Evening James, 

Im sorry for the delay, I passed out lol Here you are:


On Thu, Jan 30, 2020 at 7:48 PM James Monk <jwm...@gmail.com> wrote:
Could you put a link to the task you are referring to please?

--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/u0bwCmO8w4E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.

James Monk

unread,
Jan 31, 2020, 5:46:11 PM1/31/20
to Tasker
I followed the tutorial but it doesn't recognize that a BT device is connected.


On Thursday, January 30, 2020 at 10:28:37 PM UTC-6, Logan Fury wrote:
Good Evening James, 

Im sorry for the delay, I passed out lol Here you are:


On Thu, Jan 30, 2020 at 7:48 PM James Monk <jwm...@gmail.com> wrote:
Could you put a link to the task you are referring to please?

--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/u0bwCmO8w4E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tas...@googlegroups.com.

Logan Fury

unread,
Jan 31, 2020, 5:50:16 PM1/31/20
to tas...@googlegroups.com
have you populated the device field with a name or left it blank for any connected BT?

To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/d4c148db-f9a9-4b9d-bbea-3f637672b68a%40googlegroups.com.

James Monk

unread,
Jan 31, 2020, 6:50:55 PM1/31/20
to Tasker
Brain fart. Had one BT device added and put the other BT device on. Works well.

Logan Fury

unread,
Jan 31, 2020, 7:04:53 PM1/31/20
to Tasker
Congratulations!

Isnt that an amazing routine? Im using it in my car all the time now.

James Monk

unread,
Jan 31, 2020, 8:25:15 PM1/31/20
to Tasker
Yes it is. I've yet to test it in my car though

Anuj Syal

unread,
Apr 16, 2020, 11:39:59 PM4/16/20
to Tasker
Hi Logan,

I am try to use the API key API using the link you shared below.
However I get the following error mer

API Keys API has not

{

  "error": {

    "code": 403,

    "message": "API Keys API has not been used in project 38227791099 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/apikeys.googleapis.com/overview?project=38227791099 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.",

    "status": "PERMISSION_DENIED",

    "details": [

      {

        "@type": "type.googleapis.com/google.rpc.Help",

        "links": [

          {

            "description": "Google developers console API activation",

            "url": "https://console.developers.google.com/apis/api/apikeys.googleapis.com/overview?project=38227791099"

          }

        ]

      }

    ]

  }

}

When I go to the link in the response - https://console.developers.google.com/apis/api/apikeys.googleapis.com/overview?project=38227791099
I get the following error.

There was an error while loading /apis/api/apikeys.googleapis.com/overview?

Are you still supporting this functionality?


On Tuesday, January 28, 2020 at 9:14:54 PM UTC+8, Logan Fury wrote:
I looked over the page again and the only thing on it that makes sense to me is:

The page uses curl with the oauth2l command-line tool to send requests to the API key methods. See Getting started with the API keys API for details on getting set up to experiment with the API. 

gonna see if this is the solution 

On Tue, Jan 28, 2020 at 5:08 AM João Dias <joao...@gmail.com> wrote:
Hi. Did you follow the instructions in the action's help page? :) It says how to get the key right there...

Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias


--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/u0bwCmO8w4E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tas...@googlegroups.com.

Logan Fury

unread,
Apr 17, 2020, 1:27:22 AM4/17/20
to tas...@googlegroups.com
Hello Anuj,

Did you ever apply for a google API for access to features like SAY WaveNet? It's completely free, and there is a section in the Tasker Misc options to enter your google API for use in all Tasks that need to call upon it.

Start at the google cloud platform console

To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/c2cf3f8c-1706-40fb-9576-6bd8ddbb0ad9%40googlegroups.com.

Anuj Syal

unread,
Apr 17, 2020, 1:38:42 AM4/17/20
to Tasker
Sorry I don't understand fully, I want to use the REST API to create API keys from cloud functions.
But I still get the permission issue.
On the google console credentials library I couldn't find API key API. Hence I am not able to enable it

Logan Fury

unread,
Apr 17, 2020, 1:44:31 AM4/17/20
to tas...@googlegroups.com
Steps are as follows:

To get an API key:

  1. Go to the Google Cloud Platform Console.
  2. Click the project drop-down and select or create the project for which you want to add an API key.
  3. Click the menu button  and select APIs & Services > Credentials.
  4. On the Credentials page, click Create credentials > API key.
    The API key created dialog displays your newly created API key.
  5. Click Close.
    The new API key is listed on the Credentials page under API keys.
    (Remember to restrict the API key before using it in production.)
When I followed these steps I opted to create rather than select project, and I simply named my project "Tasker" the resulting API key gets entered into Tasker prefs

To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/ddadc834-191a-4412-aecc-9c2f0e12b897%40googlegroups.com.

Anuj Syal

unread,
Apr 17, 2020, 1:48:18 AM4/17/20
to Tasker
Thank you for the steps.
However my requirement is more around creating these keys programatically. Either through REST or oauth2l

I want to automate the step of creating api keys

Logan Fury

unread,
Apr 17, 2020, 1:54:22 AM4/17/20
to tas...@googlegroups.com
I believe that is a Linux/MacOS program and I havent either of those platforms atm.

Id suggest starting a new thread asking for help from anyone experienced with REST or oauth21 :)

Good luck, im sure there are more than enough forum users that can help with this!

To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/2d93c917-2249-40cd-9881-230d782e8e2a%40googlegroups.com.

Anuj Syal

unread,
Apr 17, 2020, 2:12:25 AM4/17/20
to tas...@googlegroups.com
Thanks for your response

You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/CAOr8%2B4Gr-0beauuj1j%3DnxSo5NQx7aX%3Dy6NcaAN9wjPAUJpDe%3DA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages