adding google analytics as an API proxy

Not applicable

I am a brand new Apigee Edge user.

Following the tutorial "create your first proxy", I have successfully created a trivial API, "hello guest". Now i am setting up an API proxy for google analytics. When I add new proxy, I didn't see any window to ask me fill Client ID and Client secret, or token to get permission. Of course there should be something wrong. It shows message "{"fault":{"fault string":"Invalid access token","detail":{"error code":"oauth.v2.InvalidAccessToken"}}}".

The setup is as follows. The target Endpoints: https://www.googleapis.com/auth/analytics.readonly

Proxy endpoints: "/google-analytics"

Deployment: environment is "prod", and the URL is http://<my-org>-prod.apigee.net/google-analytics

Can you tell me where I did is wrong? Thanks!

0 1 4,254
1 REPLY 1

Not applicable

Hi @Hsiang-Hsuan Hung,

Most probably, this fault is coming from target i.e. google-analytics. You have to obtain client id and secret from google analytics and implement the authentication process as required.

I doubt, you have gone through the process of securing APIs exposed at Edge. I would encourage to go through next set of articles to understand them.

Cheers,