Google API Translation - c++

https://www.googleapis.com/language/translate/v2?key=INSERT-YOUR-KEY&q=hello%20world&source=en&target=de
In this URL, what is INSERT-YOUR-KEY? Any good tutorials on that?

If you are planning on using an API for a project, a highly recommended first step is to read the official documentation through fully:
http://code.google.com/apis/language/translate/v2/getting_started.html
From the introduction:
You need a Google account to use this API. If you already have a Google Account, then you can visit the Google APIs console to set up a new project and get your API key.

You need a Google API key in order to use Google-provided APIs: http://code.google.com/apis/loader/signup.html

Related

Unable to create the first GCP project via API

I'm trying to create a Dialogflow Agent via API, It require a GCP project that also have to be created via API.
Actually both works well when the end user has already been once in the GCP console and accept the new terms and services.
The problem is that I would like to create the agent without the end user to have to perform any action on Google Cloud Platform.
Before it was possible, but it seems Google added a new terms of services for APIs on the GCP console that pop up the first time the user log in.
My question is, do you think there's any possibility to accepte those terms of services via Oauth or any other possibility?
Seems like Dialogflow still does it well.. so it should be possible :p
TY.
As stated by #John Hanley the user must login to accept the TOS so that the user-entity is bound to the Terms. Here you may find all the information regarding Google APIs Terms of Service.

Google Admin SDK API for Mail Log Query

Does anyone know if the google Admin SDK API has functionality for querying it's E-Mail log search?
The functionality I'm referring to is found [1].
From the reading, It appears to be only available via the Admin Console and I was able to find any reference to it in the API docs.
If such is not available, does anyone know off the top of their heads, whether or not writing a screenscaper/bot to do these queries independent of an API would violate TOS?
References:
1. https://support.google.com/a/answer/2604578?hl=en
To your first question: There is not currently a way to get the email logs via the API. People have been looking for it for some time.

How to use Google assistant without dialog flow

I create an action on google assistant and I create a webhook but I need to use my NLP engine not dialog flow NLP, is there a way to do that?
And is there any API endpoint for google assistant?
You are looking for the Actions SDK. With that SDK you can use your own NLP and generate the responses you like.
I Solve it, using gactions CLI gactions CLI Website and follow up the Action SDK Documentation.

Confusion with Google Cloud Platform and Google Cloud Storage API's

I am new with google cloud platform and trying to get started. I am interested in using Google Cloud storage.
Following this link:
datastore reference I can see available client libraries (c++ is not one of them)
Now there is google api c++ client:
google api c++ client
and it has "Google Cloud Datastore API" as one of the service api's available.
And then there is this link:
https://developers.google.com/api-client-library/cpp/
which just says:
"The Google APIs C++ Client Library is no longer available. Thank you for your interest."
That got me a bit confused. As I would like to use cloud DataStore via native c++ api.
If you're willing to do quite a bit of work you can interact with the REST API directly using whatever technology you like. You'll need to do understand how to generate an OAUTH2 credential and how the OAUTH2 scopes etc. work. You can then create an OAUTH2 cookie for the Authorization header. Once you're on top of the that the Google APIs helps you navigate the APIs and work out the expected requests and responses:
https://cloud.google.com/datastore/docs/reference/data/rest/
The REST guide lets you try out calls yourself too.

book synopsis api from google or amazon?

If I use amazon or google book, for example
http://www.amazon.com/The-Inca-Trail-Trailblazer-Trekking/dp/1873756291 or
http://books.google.co.uk/books?id=rLwNAAAACAAJ&dq=isbn:1873756291&hl=&source=gbs_api
Both return the same book synopsis(Rediscovered just earlier this ...), however, if I use amazon api or google book api, this information is not returned.
google book api example:
https://www.googleapis.com/books/v1/volumes?q=isbn:1873756291
Is there a way to retrieve this from either google or amazon using their api call?
Many Thanks
So, I can now speak for Google too! :)
This is a public Google Books API call for 'Freakonomics';
https://www.googleapis.com/books/v1/volumes/wNPnl5zYA-cC
You will see that they do return a synopsis, the 'description'.
I can only speak for Amazon, but no - this doesn't seem to be possible with their API. The API you need is the Product Advertising API; http://associates.amazon.com/gp/advertising/api/detail/main.html
The operation would be 'ItemLookup' and the response group would be 'ItemAttributes', but I'm afraid the result set doesn't include a synopsis.