open-singly
Implementation of singly API for Python
Installation
pip install open-singly
or
pip install git+https://github.com/MagicSolutions/open-singly.git
How to use
from open_singly import Singly
client_id = 'My_Client_ID'
client_secret = 'My_Client_Secret'
redirect_uri = 'http://www.mywebsite.com/singly/callback/'
singly = Singly(client_id, client_secret, redirect_uri)
# Get authentication URL for facebook for example
auth_url = singly.get_authentication_url('facebook')
# The user must be redirected to this URL. After authentication
# Singly will redirect user to your redirect_uri
# in the GET parameters there will be a code which You must
# provide to Singly.authenticate metod
api = singly.authenticate(code)
# After successfull authentication you can execute all methods
# provided from Singly API like that
all_profiles = api.profile.get(verify='true')
facebook_data = api.profiles.facebook.get()
facebook_friends = api.services.facebook.friends.get()
Enjoy!
Metadata
Release files for open-singly 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| open-singly-0.2.tar.gz | 3.4 kB | Without provenance | Details for open-singly-0.2.tar.gz |
Release files / open-singly-0.2.tar.gz
| Download URL | open-singly-0.2.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a51689550b93a89b01ef8cb37176596ff345cc45b2a08f7f30cb4cec91fb4002
|
|
BLAKE2b-256 checksum How to use checksums |
a539c7a630e491a183bbb4d51caf578f176e1b80776e0dd5eb24c771c1948a2e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for open-singly 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.