Comment on page
Python PyPI
Python PyPI client package for Ayrshare
Install the Social-Post-API PyPI Package if you use Python on the server-side. The package simplifies the calls by wrapping the RESTful calls.
Obtain your secret API Key at www.ayrshare.com
pip install social-post-api
Examples of Post, History, and Delete:
from ayrshare import SocialPost
social = SocialPost('8jKj782Aw8910dCN') # get an API Key at ayrshare.com
# Post to Platforms Twitter, Facebook, and LinkedIn
postResult = social.post({'post': 'Nice Posting 2', 'platforms': ['twitter', 'facebook', 'linkedin']})
print(postResult)
# Delete
deleteResult = social.delete({'id': postResult['id']})
print(deleteResult)
# History
print(social.history())
Last modified 2yr ago