Package: fds.sdk.ProcuretoPayProvisioning
Procure to Pay: Provisioning client library for PythonAllows for Provisioning and Entitlement of FactSet accounts.Authentication is provided via FactSet'sAPI Key SystemPlease note that the on-page "Try it out" features do not function. You must authorize against our API and make requests directly againt the endpoints.This Python package is automatically generated by theOpenAPI Generatorproject:API version: 1SPackage version: 0.9.1Build package: org.openapitools.codegen.languages.PythonClientCodegenRequirementsPython >= 3.6InstallationPoetrypoetryaddfds.sdk.utilsfds.sdk.ProcuretoPayProvisioningpippipinstallfds.sdk.utilsfds.sdk.ProcuretoPayProvisioningUsageGenerate authentication credentials.Setup Python environment.Install and activate python 3.6+. If you're usingpyenv:pyenvinstall3.9.7
pyenvshell3.9.7(optional)Install poetry.Install dependencies.Run the following:fromfds.sdk.utils.authenticationimportConfidentialClientimportfds.sdk.ProcuretoPayProvisioningfromfds.sdk.ProcuretoPayProvisioning.apiimportentitlement_management_apifromfds.sdk.ProcuretoPayProvisioning.model.inline_response202importInlineResponse202fromfds.sdk.ProcuretoPayProvisioning.model.manage_product_idsimportManageProductIdsfrompprintimportpprint# See configuration.py for a list of all supported configuration parameters.# Examples for each supported authentication method are below,# choose one that satisfies your use case.# (Preferred) OAuth 2.0: FactSetOAuth2# See https://github.com/FactSet/enterprise-sdk#oauth-20# for information on how to create the app-config.json file# See https://github.com/FactSet/enterprise-sdk-utils-python#authentication# for more information on using the ConfidentialClient classconfiguration=fds.sdk.ProcuretoPayProvisioning.Configuration(fds_oauth_client=ConfidentialClient('/path/to/app-config.json'))# Basic authentication: FactSetApiKey# See https://github.com/FactSet/enterprise-sdk#api-key# for information how to create an API key# configuration = fds.sdk.ProcuretoPayProvisioning.Configuration(#     username = 'USERNAME-SERIAL',#     password = 'API-KEY'# )# Enter a context with an instance of the API clientwithfds.sdk.ProcuretoPayProvisioning.ApiClient(configuration)asapi_client:# Create an instance of the API classapi_instance=entitlement_management_api.EntitlementManagementApi(api_client)manage_product_ids=ManageProductIds(unique_id="unique_id_example",product_ids=["product_ids_example",],)# ManageProductIds |  (optional)try:# Adds listed productIds to an individualapi_response=api_instance.add_products_post(manage_product_ids=manage_product_ids)pprint(api_response)exceptfds.sdk.ProcuretoPayProvisioning.ApiExceptionase:print("Exception when calling EntitlementManagementApi->add_products_post:%s\n"%e)Documentation for API EndpointsAll URIs are relative tohttps://api.factset.com/procuretopay/provisioningClassMethodHTTP requestDescriptionEntitlementManagementApiadd_products_postPOST/addProductsAdds listed productIds to an individualEntitlementManagementApiremove_products_postPOST/removeProductsRemoves listed productIds from an individualOrderStatusApitransaction_status_getGET/transactionStatusCheck status of order by transactionCodeUserManagementApicancel_individual_postPOST/cancelIndividualCancels an individual's serial and all productIdsUserManagementApicreate_individual_postPOST/createIndividualProvisions an individual for FactSetUserManagementApiget_individual_getGET/getIndividualReturns an individual's details by uniqueIdUserManagementApilist_individuals_getGET/listIndividualsLists all individuals with details at all locations.UserManagementApimodify_individual_postPOST/modifyIndividualModifies an individual's attributes as determined by the uniqueId in the body of the request. Please note that the uniqueId may not be changed. Fields not changing may be passed as NULL but never empty.Documentation For ModelsCancelIndividualCreateIndividualGetIndividualInlineResponse202ListIndividualsManageProductIdsModifyIndividualTransactionStatusDocumentation For AuthorizationFactSetApiKeyType: HTTP basic authenticationFactSetOAuth2Type: OAuthFlow: applicationAuthorization URL:Scopes: N/ANotes for Large OpenAPI documentsIf the OpenAPI document is large, imports in fds.sdk.ProcuretoPayProvisioning.apis and fds.sdk.ProcuretoPayProvisioning.models may fail with a
RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions:Solution 1:
Use specific imports for apis and models like:from fds.sdk.ProcuretoPayProvisioning.api.default_api import DefaultApifrom fds.sdk.ProcuretoPayProvisioning.model.pet import PetSolution 2:
Before importing the package, adjust the maximum recursion limit as shown below:import sys
sys.setrecursionlimit(1500)
import fds.sdk.ProcuretoPayProvisioning
from fds.sdk.ProcuretoPayProvisioning.apis import *
from fds.sdk.ProcuretoPayProvisioning.models import *ContributingPlease refer to thecontributing guide.CopyrightCopyright 2022 FactSet Research Systems IncLicensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.