I'm trying to get this to work for my site, but I have a unique problem with syntax that I am not been able to find an answer for it yet.
For example:
www.mysite.dev.team.com (www.mysite.com is the site url)
What I need is basically the dev to be dynamic and open to any number after it so basically it could be dev7, dev8, dev9
How would I write this into the referrers api section in the Google Api Referrers list?
*.mysite.*.team.com/*
*.mysite*.com/*
I've tried multiple different combinations but nothing worked
Thanks
Found a solution!
*.team.com/*
fixed the problem
Related
I want to do a search within a sheet.
I manage to get a list of entries (https://sheets.googleapis.com/v4/spreadsheets/{spreadsheetsID}/values/1?alt=json&key={API KEY})
but am unable to perform a search.
I use API KEY Is it possible to get an example?
Unfortunately, there is no method in Sheets API which lets you perform a search.
This has already been reported on Google's Issue Tracker here. I suggest you star the issue and eventually add a comment as well stating that you are interested in this feature.
I am trying to share the following URL via the Google Plus API
http://www.w3.org/TR/WD-html40-970708/htmlweb.html#h-4.1.1
I am using the following URL to share that:
https://plus.google.com/share?url=http://www.w3.org/TR/WD-html40-970708/htmlweb.html#h-4.1.1
However, the fragment is being removed, so I am only able to share the following
http://www.w3.org/TR/WD-html40-970708/htmlweb.html
The documentation doesn't mention anything regarding constraints about hash fragments.
Has anyone already faced this issue before?
Thanks
duh
Use %23 to encode #.
I thought I had already tested this.
I'm a newbie at stackoverflow so please be patient with me :)
I'm trying to get access with the Google Custom Search API.
But I get return that I can't understand.
My query is like this:
https://www.googleapis.com/customsearch/v1?&key=********&q=red%2Bsox&cx=**********&start=0&num=10&cr=countryCA&lr=lang_fr&client=google-csbe&output=xml_no_dtd
And the result I get is this?
string '{"error": {"errors": [{"domain": "global","reason": "invalid","message": "Invalid Value"}],"code": 400,"message": "Invalid Value"}}' (length=172)
What am I doing wrong?
I want the result from Google to appear.
Thanks in advance :)
You don't have a cx.
Take a look at this answer
What happens is because this api is used mostly for adding a search option
for your site you have to specify you custom search engine (e.g. search only your site).
When you want this to search the web by code you need to do the above. Add a fake
site (where you would add your search textbox), configure it (search the web, or your site, or whatever else) and then delete the fake site
Update
Oh god, i just saw that. Sorry. Well the problem is that you start with 0. Valid is 1. Change start=0 with start=1 and i think you would be good to go. Take a look at this for valid values for the start parameter official page
We bought this domain http://deerrepellent.ca/ and forwarded it to our main site http://bobbex.ca
However now we get an error message saying we need a new google api key whenever anyone goes to new domain. We do use maps in this site. Is there a way to use one API key for multiple domains?
Sadly, you need to have one API key per domain.
The following blog post outlines a similar issue to yours and how the developer got around it/ They still needed to have two API keys, but using some JavaScript they were able to apply the correct key based upon the domain:
http://wave.coop/blog/2010/12/google-maps-api-keys-sites-multiple-domain-names/
Below is the official word on Google over multiple domains and API keys, as also referenced in the above blog post:
https://developers.google.com/maps/faq#multiplekeys
So, I know just recently that google maps API is now available in SSL (here).
My question is, how do I retro-fit my http google maps api script to use this?
So my http Google maps API script call looks like this:
http://maps.google.com/maps?file=api&v=3&sensor=false&key=########
They suggest via this link that to use SSL it should be this:
https://maps-api-ssl.google.com/maps/api/js?v=3&sensor=false
I've tried retro-fitting this into my old URL format like so:
https://maps-api-ssl.google.com/maps/api/js?v=3&sensor=false&key=########
but that no longer displays the map.
Does anyone have any suggestions on what the URL should be?
Thanks
Try this line:
https://maps.google.com/maps/api/js?v=3.5&sensor=true
Google btw suggests that you explicitly enter what version of the api you are going to use. Just entering v=3 will always return the latest version, at the moment 3.5. I believe that the current stable version is 3.3.
As Trott wrote in his answer, api key is no longer needed.
You don't need an API key to use v3, but I suppose it probably doesn't hurt. General things to try:
Open your browser's JavaScript console and see if it is reporting any problems when you load the page.
Remove the API key
Change & to just &
Copy and paste the exact link text you put above into your code, because that link text is working for me. I'm referring to this:
https://maps-api-ssl.google.com/maps/api/js?v=3&sensor=false&key=########
Of course, change ######## to your API key (or just remove it altogether).