Skip to content

Releases: ayrshare/social-post-api-python

v1.3.0 — X/Twitter BYO support

08 May 17:07
a7818ed

Choose a tag to compare

What's new

  • X/Twitter Bring-Your-Own-Keys (BYO) support. Added set_twitter_byo(api_key, api_secret) and clear_twitter_byo() to SocialPost. When set, every outbound request includes the required X-Twitter-OAuth1-Api-Key and X-Twitter-OAuth1-Api-Secret headers — required for X/Twitter operations now that Ayrshare's BYO requirement is enforced (as of March 31, 2026). See the X BYO setup guide.
  • README cleanup. Removed duplicated paragraphs, fixed typos (e.g. capabilities, Google Business Profile), corrected the update post and generate alt text links, tightened the intro copy.
  • test.py fixes. Use the top-level Ayrshare post id from postResult['id'] for getPost/delete (the /post response uses postIds[] for per-platform ids only). Now loads optional Twitter BYO credentials from API-KEY.json and warns clearly when they're missing.
  • New smoke_test.py for verifying installation without an API key.
  • New tests/test_byo.py unit tests covering header attach/clear/chaining, instance isolation, and coexistence with Profile-Key.

Install

pip install --upgrade social-post-api==1.3.0

PyPI: https://pypi.org/project/social-post-api/1.3.0/

Full Changelog: v1.2.5...v1.3.0