{"repo":"marclove/pythreads","free":true,"listed":false,"github":"https://github.com/marclove/pythreads","clone":"git clone https://github.com/marclove/pythreads.git","description":"A Python wrapper of Meta's Threads API","language":"Python","stars":72,"topics":["api","api-client","facebook","meta","python","python3","threads","threads-api"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"PyThreads Official Documentation PyThreads is a Python wrapper for Meta's Threads API. It is still in beta, but is well-tested and covers all the published endpoints documented by Meta. Since it is in pre-release, the API is not yet guaranteed to be stable. Once there's been some opportunity to weed out any bugs and identify any DX inconveniences, a v1 with a stable API will be released. This project follows Semantic Versioning. ----- Table of Contents - Installation - Environment Variables - Authentication & Authorization - Making Requests - API Methods - Roadmap - License Installation Environment Variables You will need to create an app in the developer console which has the Threads Use Case enabled and add the the following variables to your environment. The redirect URI needs to be the URL in your application where you call the complete authorization method. Authentication & Authorization Authenticating with PyThreads is very simple: 1. Generate an authorization url and state key. Make the auth url the href of a link or button and store the state key (which is a randomly generated, opaque string used to mitigate CSRF attacks) somewhere you can reference later when Threads redirects the user back to your redirect URI. 2. When the user clicks the link/button, they will be sent to Threads to authenticate and authorize your application access to their account. Upon authorization, they will be sent to your THREADS REDIRECT URI. At your THREADS REDIRECT URI endpoint, call compl","default_branch":null,"files":null,"tree":[],"storefront":"/r/marclove","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/marclove/pythreads/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}