Aller au contenu
Twexapi
Français
Esc
↑↓naviguer↵ouvrir⌘Japerçu

Consulter les invitations de délégation en attente

List pending account-delegation invitations received by the account identified by cookie. Requires both a TwexAPI Bearer key and the recipient account’s authorized X cookie or auth_token. Returns an empty array when no pending invitations are found. username and membership_id do not filter this list. This read operation requires account credentials because invitations are private.

Retour à la référence API
/Delegate Endpoints
POST/twitter/delegate/invites
Autorisation API
AuthorizationBearer token · headerrequis
Jeton Bearer global pour TwexAPI. Inclus sous la forme : Authorization: Bearer <YOUR_TWEXAPI_KEY>.
Corps de la requête
requisapplication/json
cookiestringrequis
Authorized X session cookie or auth_token for the account receiving the invitation. Required in addition to the TwexAPI Bearer key.
min length 1
proxystring | any
Afficher les propriétés
Any of:
string
string
any
any
usernamestring | any
Afficher les propriétés
Any of:
string
string
any
any
membership_idstring | any
Afficher les propriétés
Any of:
string
string
any
any
Réponses
200Success
codeintegerrequis
msgstringrequis
dataDelegateInvite[]requis
Afficher les propriétés
Array of DelegateInvite
membership_idstringrequis
rolestringrequis
screen_namestringrequis
Username of the account that sent the delegation invitation.
namestringrequis
user_idstringrequis
403Authentication or credit access denied
codeintegerrequis
msgstringrequis
dataany[] | anyrequis
Afficher les propriétés
Any of:
any[]
Array of any
any
any
any
422Invalid request
codeintegerrequis
msgstringrequis
dataany[] | anyrequis
Afficher les propriétés
Any of:
any[]
Array of any
any
any
any
500Upstream or server error
codeintegerrequis
msgstringrequis
dataany[] | anyrequis
Afficher les propriétés
Any of:
any[]
Array of any
any
any
any
⚡Console interactivePOST
⚡Console interactive / Tester l'APIPOST
Live Console
🌐Serveur cible :https://api.twexapi.io
● Prêt pour la production
✍️
Guide d'identification d'écriture (Clé TwexAPI + Cookie Twitter)

1. Clé TwexAPI (Bearer Token) : À renseigner sous "Autorisation API" ci-dessous pour la facturation et l'authentification.

2. Cookie Twitter : Pour les opérations d'écriture (tweet, like, etc.), renseignez le Cookie Twitter (ex : auth_token=...; ct0=...) dans le champ cookie ci-dessous.

🔑Autorisation API
📝Corps de la requêteapplication/json
📡
暂无响应数据

请在「请求配置」中确认参数后,点击底部的「发送请求」按钮。

Requête
curl -X POST "https://api.twexapi.io/twitter/delegate/invites" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "cookie": "YOUR_X_COOKIE_OR_AUTH_TOKEN"
}'
Réponse
{
  "code": 200,
  "msg": "success",
  "data": []
}