Google Webmaster Tools API: Downloading queries via OAUTH2 - google-search-console

I'm trying to use Google's Webmaster Tools API to download a CSV file of recent search queries.
I know how to do that using their Python example at http://googlewebmastercentral.blogspot.com/2011/12/download-search-queries-data-using.html
But I want to use OAUTH2.
Here's the problem: The download url for CSV downloads is:
/webmasters/tools/downloads-list?hl=%s&siteUrl=%s
But the Google data API only lets me use OAUTH2 against:
/webmasters/tools/feeds/sites/
So the token I get when I authenticate doesn't provide access.
It SEEMS insane that they'd have some of their data available via OAUTH2 and some of it only using username/password.
Does anyone know a request URI I can use to download the query report via OAUTH2? Or is this API as nuts as it seems?

My $.02 would be "yes, it IS as nuts as it seems."
If you look at the Google APIs Console (https://code.google.com/apis/console) the Webmaster Tools API is conspicuously absent.
I attempted to go down the same road & use OATH2 for the GWT API & was not able to make it work. Using the 'basic authentication' was the only solution.
edit April 2015: basic authentication has been withdrawn by Google and no longer works

I just ran into this, I am shure it has to be possible with OAuth2, corresponding to this sentence:
Activate the Google Site Verification API in the Services pane of the Google APIs Console. (If it isn't listed in the Console, then skip this step.)
https://developers.google.com/site-verification/v1/getting_started

Related

How to access/manage Actions on Google project via api

I have some actions on google projects. I can modify them via the web console and the gactions CLI tool. But I found no resource on how to manage (list/modify/update) action projects via an API? Is this not possible?
I've found a service named Voiceflow, which is a tool for creating Alexa skills and Google Actions using a graphical UI. It requires users to authorize their Google account in order to access their Google Actions. Which API are they using? I've looked into Google's API Playground but found no similar API. But as they are using some API, I suppose it's possible to manage one's Google Actions via API. Any help would be appreciated. Thanks
EDIT: I have done some digging and found that I can request permission to access Actions using this url as OAuth scope (https://www.googleapis.com/auth/actions.builder). But I found no docs on how to actually view/edit the Actions.
Moreover, I've found another resource named Actions API. It's description says Google Actions API allows developer to register and manage their actions on Google Cloud Platform. But I see no guide on how to use it.

Can I access the active version on SAP Cloud Platform of HTML5 apps through a api?

I need to access the active version on SAP Cloud Platform of HTML5 apps through an api.
I know for the java apps you have the lifecycle api: doc
But you can't access HTML5 information with this API.
What I found is this service: https://account.hana.ondemand.com/ajax/getHtml5AppDetails/{subaccountName}/{appName}
This will return a JSON string with the required info, but I'm not authorized to access this page, although I have all the possible admin rights.
So I'm wondering If any of you has any idea to solve my issue, and other people's issues.
Well, we needed something similar and used this kinda hack to get the active versions via WebIde Api (need basic Auth to login) replace XXXX with your account
https://webide-XXXX.dispatcher.hana.ondemand.com/api/html5api/accounts/XXXXX/applications
You get back a json array with all your applications of that sub account, including active version and other interesting information
Hope it helps ;))
Regards Mathias
You could create a HTTP Proxy Servlet based on https://github.com/SAP/cloud-connectivityproxy that provides read only access to https://dispatcher.hanatrial.ondemand.com/hcproxy/b/api/accounts/<subaccount>/applications/<app> for your app.

Make own authorization page to access Google Apps

I hope you can direct me with my query.
I wish to create my own authentication method for users in my Google Apps for Work account. Currently I am using built in Google Authentication, however I wish to build my own authentication method in PHP, Phyton or .NET; language doesn't matter really. So I want users to go to the page I will create, then they will need to pass authentication and be logged to Google Apps.
I know SSO is the way to do it but after my research I found very little about how to achieve it with Google Apps. I mean there is tones of third party platforms like OneLogin etc but I would like to have something I build myself. Ideally I would like to have some examples of SSO which works with GAFW so I could figure out the rest myself. I read somewhere that building own SSO portal it's not a piece of cake and also found an article that you can create something based on oAuth2.0 instead. So tried research about oAuth2.0 but all documentation I found is about authenticating to the application that I build using Google Apps Credentials, where I want the opposite; to be able to access Google Apps using the app that I build.
Hope someone could direct me to some examples or documentation or explain the process of learning curve to get my head around this project of building SSO for GAFW.
If you want to write your own Auth system and become the Identity Provider (IdP), you need to use SAML as that is the only supported method for now.
Here are the step by step instructions

YouTube API: Dashboard vs API Console

I'm implementing server-side interactions with YouTube and I'm a bit lost with the kind of Product/App you need to create in order to publish videos via the API for example.
Looking at the OAuth2 doc, it says that I need to register my app with the API Console (looks good so far, very similar to creating a Facebook App).
But then, I looked at the Google .NET library and here it says that a Product needs to be registered in the YouTube dashboard... Not sure to understand how these are complementary. If anyone has a synthetic explanation (which I didn't found in the docs), I would be grateful.
Thanks
I'm not 100% sure but I believe:
The YouTube Dashboard was originally setup prior to the announcement of YouTube API v3, which is yet to be released. You use the Dashboard to register your application and get a YT Dev Key. You can also use the Dashboard for some extremely low level application statistics.
The API Console is Google's attempt to form one administrative console for ALL of their APIs. Since Google is transistioning to oAuth 2 authorization, you will need to use the API console as well in order to apply for a clientID, redirectURI, and clientSecret if you want to authorize with oAuth 2.
At this time, if you do not want to use oAuth2 you do not need access to the API Console. However, know that in February of next year YouTube is going to kill all other forms of authorization (sub, clientLogin, oAuth1).
So to try and simplify things:
Use the API Console to get your oAuth2 in order
Use the YT Dashboard to get a YT Dev Key
In the future, when Google goes lives with YouTube API v3, you will probably want to switch to a new Dev Key from the API Console and leave the Dashboard all together.

Has anyone written an STS wrapper to Facebook Connect and Graph API?

Has anyone written a secure token service that wraps the Facebook connect API that they are willing to share?
We are considering this as an alternative to using Azure ACS.
Sign into SharePoint 2010 with Facebook using a custom STS shows how to integrate the Facebook part with a custom STS. You can pretty much ignore the SP 2010 part (unless that's what you are using?).
Also, have a look at Startersts. Not specifically about Facebook but it does have a sample on how to build a bridge between OpenId and WS-Federation.