From 556f4cb7367b0b9b8788052842ea98367f487944 Mon Sep 17 00:00:00 2001 From: Ray Lyon <36998292+skoobasteeve@users.noreply.github.com> Date: Mon, 7 Aug 2023 20:56:07 +0000 Subject: [PATCH] update README --- README.md | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 38c246f..1c7be0e 100644 --- a/README.md +++ b/README.md @@ -23,22 +23,21 @@ Authenticate with the SAP SuccessFactors API with OAuth2 and Python. #!/usr/bin/env python import requests -from successfactors_auth import auth as sf_auth +import successfactors_auth as sf sf_url = 'https://your.base.url.com' sf_company_id = 'your-company-id' sf_oauth_client_id = 'your_app_client_id' sf_admin_user = 'your_admin_user' -sf_saml_private_key = 'your_app_private_key.pem' +sf_saml_private_key = 'app_private_key_file.pem' -token = sf_auth.auth( - sf_url, - sf_company_id, - sf_oauth_client_id, - sf_admin_user, - sf_saml_private_key, - sf_saml_template - ) +token = sf.get_token( + sf_company_id=company_id, + sf_oauth_client_id=oauth_client_id, + sf_admin_user=admin_api_user, + sf_saml_private_key=oauth_private_key, + sf_url=url +) headers = { "Accept: application/json",