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#createThis 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 404Can anyone help with this?Thank you,Logan
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. --
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.
Click the 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?
--
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%2BFc35Y%3DKi8xAcQLBNYmwKy6N3ruSkX9F02Q9zQ9NS0UY6g%40mail.gmail.com.
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/2843a85b-3cb9-4e40-b35a-41baa6b97707%40googlegroups.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 tas...@googlegroups.com.
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.
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"
}
]
}
]
}
}
I looked over the page again and the only thing on it that makes sense to me is:The page usescurl
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...
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.
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/c2cf3f8c-1706-40fb-9576-6bd8ddbb0ad9%40googlegroups.com.
To get an API key:
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/ddadc834-191a-4412-aecc-9c2f0e12b897%40googlegroups.com.
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.
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.