Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/clemenbor/sasbdb-rest-onedep-client-example
https://github.com/clemenbor/sasbdb-rest-onedep-client-example
client example onedep python rest-api sasbdb
Last synced: 29 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/clemenbor/sasbdb-rest-onedep-client-example
- Owner: clemenbor
- Created: 2017-02-02T14:58:07.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-21T09:04:54.000Z (almost 8 years ago)
- Last Synced: 2024-11-08T13:26:20.463Z (2 months ago)
- Topics: client, example, onedep, python, rest-api, sasbdb
- Language: Python
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sasbdb-rest-onedep-client-example
This repository contains example scripts to access information from SASBDB by
using the SASBDB Onedep REST API.### Example
1) A sasbdb account with access to the API will be provided by SASBDB.
2) Configure this account in the file base.py (API_USERNAME and API_PASSWORD properties).
3) Run the following example:```
python example1.py
```
The script will do the following:
+ Authenticate the account against SASBDB
+ Create a JWT token for API access valid for 30 days in local storage. It will renew the token automatically when it is expired.
+ Call the API method deposition_status using a onedep_id as a parameter (and a valid token for access).