Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

API wrapper for Buffer written in Python

Project description

# 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for buffer-python-lib, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size buffer-python-lib-0.1.0.tar.gz (4.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page