update README

This commit is contained in:
Ray Lyon
2023-08-07 20:56:07 +00:00
parent 761cfea9a6
commit 556f4cb736

View File

@@ -23,22 +23,21 @@ Authenticate with the SAP SuccessFactors API with OAuth2 and Python.
#!/usr/bin/env python #!/usr/bin/env python
import requests import requests
from successfactors_auth import auth as sf_auth import successfactors_auth as sf
sf_url = 'https://your.base.url.com' sf_url = 'https://your.base.url.com'
sf_company_id = 'your-company-id' sf_company_id = 'your-company-id'
sf_oauth_client_id = 'your_app_client_id' sf_oauth_client_id = 'your_app_client_id'
sf_admin_user = 'your_admin_user' 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( token = sf.get_token(
sf_url, sf_company_id=company_id,
sf_company_id, sf_oauth_client_id=oauth_client_id,
sf_oauth_client_id, sf_admin_user=admin_api_user,
sf_admin_user, sf_saml_private_key=oauth_private_key,
sf_saml_private_key, sf_url=url
sf_saml_template )
)
headers = { headers = {
"Accept: application/json", "Accept: application/json",