mirror of
https://github.com/skoobasteeve/successfactors-python.git
synced 2026-03-20 03:28:58 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7f175514e6 | ||
|
|
3fcd1ae4c6 | ||
|
|
416f287ddc |
3
.github/workflows/python-publish.yml
vendored
3
.github/workflows/python-publish.yml
vendored
@@ -11,6 +11,7 @@ name: Upload Python Package
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
@@ -33,7 +34,7 @@ jobs:
|
||||
- name: Build package
|
||||
run: python -m build
|
||||
- name: Publish package
|
||||
uses: pypa/gh-action-pypi-publish@v1
|
||||
uses: pypa/gh-action-pypi-publish@release/v1
|
||||
with:
|
||||
user: __token__
|
||||
password: ${{ secrets.PYPI_API_TOKEN }}
|
||||
|
||||
@@ -10,7 +10,7 @@ Authenticate with the SAP SuccessFactors API with OAuth2 and Python.
|
||||
pip install successfactors_auth
|
||||
```
|
||||
4. Import `successfactors_auth` into your Python >=3.9 project.
|
||||
5. Call the `successfactors_auth.auth()` function in your Python project. You'll need to pass the following parameters:
|
||||
5. Call the `successfactors_auth.get_token()` function in your Python project. You'll need to pass the following parameters:
|
||||
- `sf_url`: Base API url of your SuccessFactors instance, e.g. "https://api55.sapsf.eu".
|
||||
- `sf_company_id`: SuccessFactors company ID.
|
||||
- `sf_oauth_client_id`: The Client ID for the OAuth application you created earlier.
|
||||
@@ -58,4 +58,4 @@ Once you get authenticated, getting the information you want is a whole new leve
|
||||
|
||||
## Contributing
|
||||
|
||||
All contributions welcome! Feel free to file an [issue](https://github.com/skoobasteeve/successfactors_auth/issues) or open a [pull request](https://github.com/skoobasteeve/successfactors_auth/pulls).
|
||||
All contributions welcome! Feel free to file an [issue](https://github.com/skoobasteeve/successfactors_auth/issues) or open a [pull request](https://github.com/skoobasteeve/successfactors_auth/pulls).
|
||||
|
||||
Reference in New Issue
Block a user