ThreadsPipe integrates with the Meta Threads API. Token = long-lived User Access Token with threads_basic and threads_manage_replies scopes. SecretKey = App Secret from the Meta Developer Console, used to verify X-Hub-Signature-256. verifyToken is set to the pipe name and must match the webhook
| 31 | // verifyToken is set to the pipe name and must match the webhook verify token configured in |
| 32 | // the Meta Developer Console. |
| 33 | type ThreadsPipe struct { |
| 34 | accessToken string |
| 35 | appSecret string |
| 36 | verifyToken string |
| 37 | httpClient *http.Client |
| 38 | |
| 39 | mu sync.Mutex |
| 40 | userId string |
| 41 | } |
| 42 | |
| 43 | type threadsWebhookPayload struct { |
| 44 | Object string `json:"object"` |
nothing calls this directly
no outgoing calls
no test coverage detected