cancel
Showing results for 
Search instead for 
Did you mean: 

Using GCP APIs from Blue Prism

MayankGoyal2
Level 8
Hi, How can we authenticate Google cloud API's from blue prism with service account Json file. We will use HTTP VBO to make actual API call ex, vision API for OCR. However not sure how to authenticate with service account from blue prism.
This google link has details on service account authentication - Authenticating to the Cloud Vision API | Vision API Product Search | Google Cloud

@ewilson, @AmiBarrett - Any inputs are highly appreciated.​​
1 REPLY 1

ewilson
Staff
Staff
Hi @Mayank Goyal,

The HTTP VBO isn't designed to use Google credential files directly. ​To use the Google JSON file directly you would typically leverage the Google .NET client library for the specific Google API you want to use. This is similar to the Google Sheets VBO that ships with Blue Prism, although it has you place the Client ID and Client Secret in a BP credential instead of using the JSON file.

Here's an example of using the Google Sheets .NET libraries along with a JSON auth file: https://developers.google.com/sheets/api/quickstart/dotnet

With that said, you can always read the contents of the JSON file, pull out the client ID and client secret and use those to set the values of Username and Password on the HTTP VBO. You'd also need to set Force Pre Authorization to True I believe. Take a look at the Webservices - OAuth2.0 VBO (it uses the HTTP VBO under the hood).

Cheers,
Eric