Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Trying to access Analytics project using http post with service account

We are able to access our Analytics data through postman (using Oauth 2.0). However, when using Postman we get a popup window asking if we wish to give access to the account trying to log in. We need to be able to do this programmatically through our integration platform (webmethods). As I understand it, we would contact the authorization endpoint to get the auth code, submit that auth code to the token endpoint, and then use that endpoint to post to our analytics app and get the json payload back. This is exactly what we want to do but we're doing it through WebMEthods so we can't have someone manually approving the request each time of course. 

What we're missing and I'm hoping someone here can explain is what are the exact steps and data parts needed to get the oauth token? I feel once we have the token, we're all set from our side. We have a service account on the app that we've given access to but again, just not sure how to get the token using http/s posts or gets to get the token back. 

Any and help would be GREATLY appreciated as the API team seems to have no idea what I'm talking about.

1 0 126
0 REPLIES 0