Download submitted sitemap from Google Webmaster Tools - sitemap

Is there any built-in API from Google Webmaster Tools that allows the user to download a sitemap that was previously submitted?

You can use Sitemaps: list to list all the submitted sitemaps. This returns a list of sitemaps with URLs that you can then download.
GET https://www.googleapis.com/webmasters/v3/sites/siteUrl/sitemaps
└──┬──┘
the domain URL e.g. https://example.com/ ──┘
You'll need to authorise first.

Related

Google Console - How to add Authorized redirect URIs via API

Whenever I want to add any authorized redirect URI in the credentials section, I must have to google console and add it. Is there any API available that I can use in the script, I have googled it a lot but couldn't find anything related to it.
There is no api that will allow you to programmatically add redirect uris to your project on google console.
Google console is configuration for the developer its not something that should be needed to be done programmatically.

How can I log in using Google OAuth in the TikTok in-app browser?

When attempting to log in with Google OAuth via the TikTok in-app browser it says "Authorization Error Error 403 disallowed_useragent Google can't sign you in safely inside this app. You can use Google sign-in by visiting this app's website in a browser like Safari or Chrome."
Thinking this is either a call by Google to prevent login within TikTok or they simply haven't added this user agent yet.
Google OAuth does not work in embedded web views per policy. See https://developers.googleblog.com/2016/08/modernizing-oauth-interactions-in-native-apps.html.
You should reach out to the app developer to recommend they use one of the alternatives recommended like Chrome Custom Tabs.

Google's UrlShortener, where can I find the list

I shortened many URLs using Rest API, with 'API Project' which is one of my Google APIs projects.
However, I cannot find the list of shortened URLs in the page of https://goo.gl/.
(Here I can only find the list of shortened URLs I have created here on the webpage.)
I don't know why, but, I guess this is because I had several projects.
Where Can I find the list of shortened Urls with specific API-Key and project.
Plus, I cannot find it on the apis-explorer
(http://developers.google.com/apis-explorer/?hl=ko#p/urlshortener/v1/)
API keys are used to access public APIs. Google URL shortener is in fact a public API you don't need to be logged in in order to use it.
If you are not logged in then Google has no idea who it was that shortened said url and now way of keeping the stats for you that you are looking for.
If you want to keep the stats on your own page then you should change your application to use OAUTH2 authenticate your application then use that to shorten the URLs. The stats will then apear.

Browser to see LinkedIn pages without login

I use Firefox latest version.
When I type a name or a company in google search I take results from LinkedIn
The problem I have is that when I try to click the link to see the content of i.e. company page in linkedin it always redirects me and ask to login.
I tried to make the same process also with Chrome and IE but again the same results.
Could it be a problem with the browsers?

How to tackle 'Invalid user credentials given' in Google Sites API?

We use google sites at my company, and I am trying to use google sites API to modify certain pages. The credentials that I use for signing in are: username#companyName.com and a unique password.One more thing to note, is that the url for our sites pages are in the following format: https://sites.google.com/a/companyName/NameOfYourPage
I just started using the Google Sites API, and was looking at one of the examples that they have given in their /samples/sites directory. (Got this after downloading the most recent zip file https://code.google.com/p/gdata-python-client/downloads/list). Right now I was trying to run sites_examples.py.
So when I do run sites_examples.py and enter the site information as given above, I am asked to choose the authorization mechanism. I chose ClientLogin. When I enter the same user name and password (as I mentioned above) to access the sites page, it throws me: Invalid user credentials given.
Why is this happening?
You can get this error if Google detects suspicious activity on your account. To remedy
log in to your Google account with the same credentials
look for the warning from Google that notifies you of suspicious activity
click on the link on the warning on Google's site
follow Google's instructions to enable your client code

Resources