How to get api key by the key and not the id AWS APIGateway - aws-sdk

I'm using Go sdk but an example with any other sdk will be helpfull anyway.
I'm trying to access an API Key by the Value but I don't see any way of doing this. Apparently the only way of getting and API Key is by it's id with the GetApiKey method or using the name in the GetApiKeys method.
I don't want this, I want to access to the API Key using the Value itself. Does anyone know how to do this?
Thanks!

Related

Whenever I use an google maps API key it doesn’t work

I can’t seem to use they API key I generated when running the android emulators. The very first app I made with any API key I generated works but anytime I make a new app and plug in the API key it doesn’t work. It says it’s having trouble with google play services. Anyone know how to fix this?
It seems that the API key is restricted to your first app where you used the API key, I would suggest that you use new API key for each app that you make as this will also help you track your usage for each app that you make.
You may also see the API key best practices to help you in restricting your API key to avoid unexpected usage.

obligation google api key for map

In Start version api 3 (javascript api) we dont need to have api key? Now in documental have 2 points:
1)NoApiKeys Warning
The script element that loads the API has no API key. Please make sure you include a valid API key as a key parameter. You can generate a new API key on the Google API Console.
2)InvalidKeyMapError Error
The API key included in the script element that loads the API is not found. Please make sure you are using a correct API key. You can generate a new API key on the Google API Console.
In what case we have 1 point, and when we have 2?
You can use Google Maps without an api key in the following manner
<script type="text/javascript"
src="https://maps.googleapis.com/maps/api/js?sensor=SET_TO_TRUE_OR_FALSE">
</script>
In this case you will get the error mentioned in point 1.
You can also use google maps with a key
<script type="text/javascript"
src="https://maps.googleapis.com/maps/api/js?key=API_KEY&sensor=SET_TO_TRUE_OR_FALSE">
</script>
If the api key that you have used is invalid or incorrect or the website that you are using it on hasn't been whitelisted for that particular API key then you will get the error in point 2.
For further details check How to use Google Maps without key
To register for a key : https://developers.google.com/maps/documentation/javascript/get-api-key
If you're using the API under the standard plan, you must use a browser key (a type of API key) set up in a project of your choice. The usage is free until your application reaches 25.000 calls per day on 90 consecutive days.Generate a key here

What is the need for API key?

The tutorial for Google maps API states that an API key is required for making calls to the API. The example given on the page however does not use an API key. So why would'nt someone choose to make the call without an API key and not worry about exceeding any limits?
Thanks,
Yash
Since version 3 you the API key is not mandatory anymore. You still can provide one though to track your usage because the limit still exists. See also this answer.

Provided key is not a valid Google API key

I am new to google map api. I copied the Hello_World.html from google maps javascript v3 getting started. But I always get the error message: the provided key is not a valid google api key.
I tried a few things but none of them worked. The following is what I did:
I edited the allowed referrers to mysite.com/* and localhost/*. But the error message is still there.
I tried a method someone suggested, which adds javascript version number:
change src="https://maps.googleapis.com/maps/api/js?key={XXX....X}&sensor=true" to src="https://maps.googleapis.com/maps/api/js?v=3.6key={XXX....X}&sensor=true", even so, the error message is still there.
Can someone give me any suggestions?
You do not need a key for Google Maps API v3, see the documentation. Your API v2 key will not work.
You will only need key for API v3 in case you want some additional features (very high traffic site, additional statistics etc.). But this is a very rare case.
You don't need a key, it should work without it. If you provided the key you are using (it isn't secret and can't be used on domains that you don't allow), we could tell if it is at least the correct format.
This
src="https://maps.googleapis.com/maps/api/js?v=3.6key={XXX....X}&sensor=true
is incorrect.
it is missing an & between the v=3.6 and "key".
version 3.6 is no longer available, that will result in the "frozen version", currently version 3.11.
I had this problem. The solution is:
Go to https://code.google.com/apis/console -> api access
Click "Key for browser apps".
The example says to enter *.example.com/* but it doesn't work for me. I had to enter (one per line):
example.com
*.example.com
*.example.com/*
example.com/*
Hope this helps

How to find nearest point of interest using Google Maps API?

For an application I'm developing, I need to find the nearest bus stops using the Google Maps API. How would I accomplish this?
The place search API just returns REQUEST_DENIED, so that isn't much help.
https://maps.googleapis.com/maps/api/place/search/json?key=AIzaSyCNutXaoPSvdgAboAp7CYLZ2S5oVv_Fe7o&location=52.069858,4.291111&radius=1000&sensor=false
http://puu.sh/zUUa
I suspect that REQUEST_DENIED gives you a clue that your query is well-formed, but there is something invalid. If it's not the lack of the sensor parameter, it must be the key you provided. I don't have a key myself to test it, and Google refuses to give it saying the URL I provided is invalid... I can only suggest you to double-check your key, and maybe try with another account.
EDIT: Now I've managed to get my key and found your mistake: you forgot to put https, not http, in your request.