Buffer-python
Buffer-python is an API wrapper for the API v1 of Buffer written in Python
Installing
pip install buffer-python-lib
Usage
from buffer.client import Client
client = Client('CLIENT_ID', 'CLIENT_SECRET')
Get authorization url
url = client.get_authorization_url('REDIRECT_URL')
Exchange the code for an access token
token = client.exchange_code('REDIRECT_URL', 'CODE')
Set the access token
client.set_token('TOKEN')
Get user information
account = client.get_user_info()
Get user registered profiles
profiles = client.get_user_profiles()
Get specific user profile
profile = client.get_specific_profile('PROFILE_ID')
Get leads given the form
posting_schedules = client.get_posting_schedules('PROFILE_ID')
Get sent posts
sent_posts = client.get_sent_post('PROFILE_ID')
Get specific post
specific_post = client.get_specific_post('POST_ID')
New post or update
post = client.new_post('PROFILE_ID', 'TEXT', True)
Requirements
- requests
TODO
- unittest
Contributing
We are always grateful for any kind of contribution including but not limited to bug reports, code enhancements, bug fixes, and even functionality suggestions.
You can report any bug you find or suggest new functionality with a new issue.
If you want to add yourself some functionality to the wrapper:
- Fork it ( https://github.com/GearPlug/buffer-python )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Adds my new feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Metadata
Release files for buffer-python-lib 0.1.1
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 |
|---|---|---|---|---|
| buffer_python_lib-0.1.1.tar.gz | 5.6 kB | Without provenance | Details for buffer_python_lib-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| buffer_python_lib-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for buffer_python_lib-0.1.1-py3-none-any.whl |
Total release size: 12.4 kB
Release files / buffer_python_lib-0.1.1.tar.gz
| Download URL | buffer_python_lib-0.1.1.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2534b0b83dd09a5dc9f2f69d1252c8155a9624f05583db80493d35b033b0b1ac
|
|
BLAKE2b-256 checksum How to use checksums |
3baddb4d7abe83e6c1ba042b4213ded12618f7dec26d39b3633df7b5607cbbb4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Release files / buffer_python_lib-0.1.1-py3-none-any.whl
| Download URL | buffer_python_lib-0.1.1-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
569969b759e40d8bc1c1c61557ff06b609a0458df790eeda1423f417f32e04e2
|
|
BLAKE2b-256 checksum How to use checksums |
5252d3b52bec7d298c019c774ab82ded69b5e32b89922d8893761282311cf21b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Security for buffer-python-lib 0.1.1
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.