MCPcopy
hub / github.com/the-open-agent/openagent / ThreadsPipe

Struct ThreadsPipe

pipe/threads.go:33–41  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

31// verifyToken is set to the pipe name and must match the webhook verify token configured in
32// the Meta Developer Console.
33type 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
43type threadsWebhookPayload struct {
44 Object string `json:"object"`

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected