Support > Forums > OpenBots Studio > Google OCR
How to get credential.txt for google ocr command
This forum has 317 topics, 687 replies, and was last updated 4 months ago by Nataly Alvarado...
Do I need to enable which google api service?
Type: 'InvalidOperationException', Message: 'Error reading credential file from location D:\Project\Openbot\OB Scripts\AttendedAutomationSample\AttendedAutomationSample\Input\Cred.json: Error creating credential from JSON or JSON parameters. Unrecognized credential type . Please check the value of the Environment Variable GOOGLE_APPLICATION_CREDENTIALS']
I got this error from running Google OCR command
Type: 'InvalidOperationException', Message: 'Error reading credential file from location D:\Project\Openbot\OB Scripts\AttendedAutomationSample\AttendedAutomationSample\Input\Cred.json: Error creating credential from JSON or JSON parameters. Unrecognized credential type . Please check the value of the Environment Variable GOOGLE_APPLICATION_CREDENTIALS']
I got this error from running Google OCR command
Hi Flexible Technology,
Once you follow the steps provided in the guide, you'll be able to generate the OAuth2 credential json file (see below image for reference). You can then reference this file when using the GoogleOCR commands.
Also attaching a sample file (with invalid values) for your reference.
Give me example text file, thank.
In Google OCR command required parameter credential.txt . So how the value in that text file look like ?
Hi Flexible Technology,
Thanks for submitting your support query.
Note that you would need to create a Google Application to interact with the Google Workspace API and generate a set of OAuth2 credentials.
You can follow this link for reference: https://developers.google.com/workspace/guides/get-started Also, this step-by-step guide: https://github.com/jstedfast/MailKit/blob/master/GMailOAuth2.md#register-your-application-with-google Thanks!
You are not authorized to reply, please click here to login and add your reply to this topic.