Python Library for Spurwing API
Project description
Spurwing API Python Library
Lightweight Python library for Spurwing's API.
Spurwing's API makes it easy to add robust scheduling and booking to your application. We power millions of appointment bookings for thousands of companies, from marketplaces to SaaS & healthcare.
Account
To use this API you need to obtain API credentials by signin up here: https://spurwing.io/
On your dashboard you will have the "API Info" page with your API key and Provider ID.
-
API Key: This is your private API Key used for private and authorized operations.
-
Provider ID: This is your public calendar identifier.
Security Warning: Never expose your API Key in front-end javascript code. All implementations that require your API Key should be handled by your back-end in a secure environment.
Usage
You can use pip to install the library: pip install spurwing
If you use another method, make sure to install the dependencies: pip install -r requirements.txt
You can use it as such:
from spurwing import Client as sp
PID = 'your_provider_id';
KEY = 'your_api_key';
A = sp.list_appointments(KEY)
Documentation
The currently implemented API functions and features are:
- get_appointment_types
- get_days_available
- get_slots_available
- complete_booking
- list_appointments
- delete_appointment
For additional demos and use cases have a look under spurwing/test_api.py.
Spurwing's REST API Reference and Docs: https://docs.spurwing.io/
Testing
To run our predefined unit tests use the spurwing/test_api.py script.
You also need to provide the API credentials. You can use environment variables, or rename the config.sample.py file to config.py and enter your credentials (provider id and api key). Afterwards you can run the npm tests command. You can optionally use PyTest or another framework.
Environment variables:
SPURWING_PID=change_me
SPURWING_KEY=change_me
Support
- For public issues and bugs please use the GitHub Issues Page.
- For enquiries and private issues reach out to us at support@spurwing.io
- Join our Discord Community Server: https://discord.gg/j3gd5Qk5uW
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file Spurwing-1.0.6.tar.gz.
File metadata
- Download URL: Spurwing-1.0.6.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3cc55fdaf9a3db5c502a297382007a53b147a8c5fd4be7833954ba763db01759
|
|
| MD5 |
9af3a1e118b18af3a256f352c5aee85d
|
|
| BLAKE2b-256 |
459826a28772fa993c5f8117f2ea665c2393f7fdf9505af16cbd7a01f3c0af17
|
File details
Details for the file Spurwing-1.0.6-py3-none-any.whl.
File metadata
- Download URL: Spurwing-1.0.6-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a705d84eeef881bbe5ec18661f7b913b4065e8f71db948edb1f32838a8a6473
|
|
| MD5 |
6372d2cd1a4be1df5259cfc10c4679e4
|
|
| BLAKE2b-256 |
320d3b7bd54b3cee20ca62360be86c3039298fc7053b5061e5d4bfdc46e6b8f7
|