Form Recognizer Studio has an option to share and import custom created models. It generates a token for the model which can be shared and imported into another account.
I wanted to get this token using Python for a script. Is there any way I can do this task in Python? Thank You!
I tried using the below code
from azure.core.credentials import AzureKeyCredential
from azure.ai.formrecognizer import FormTrainingClient
client = FormTrainingClient(endpoint, AzureKeyCredential(key))
target = client.get_copy_authorization(resource_id="", resource_region="eastus")
Using this code, I can get the accessToken, but this is associated to Resource Group. I wanted to get token to share Custom built Form Recognizer Model.