委任招待を承認
Accept a pending invitation for the account identified by cookie. Use membership_id from the invitations endpoint or username of the inviting account. A non-empty membership_id takes precedence over username, with no username fallback if the ID is not found. If neither selector is provided, acceptance occurs only when exactly one invitation is pending. No match, no invitations, or multiple invitations without a selector returns HTTP 500 in the current implementation. Success returns the selected invitation metadata. Requires a TwexAPI Bearer key and the recipient account’s authorized X credentials.
/twitter/delegate/acceptAuthorizationBearer token · header必須application/jsoncookiestring必須proxystring | anyプロパティを表示プロパティを非表示
stringanyusernamestring | anyプロパティを表示プロパティを非表示
stringanymembership_idstring | anyプロパティを表示プロパティを非表示
stringanycodeinteger必須msgstring必須dataDelegateInvite必須プロパティを表示プロパティを非表示
membership_idstring必須rolestring必須screen_namestring必須namestring必須user_idstring必須codeinteger必須msgstring必須dataany[] | any必須プロパティを表示プロパティを非表示
anyanyanycodeinteger必須msgstring必須dataany[] | any必須プロパティを表示プロパティを非表示
anyanyanycodeinteger必須msgstring必須dataany[] | any必須プロパティを表示プロパティを非表示
anyanyany⚡インタラクティブテスト / Try APIPOSTLive Console
https://api.twexapi.io1. TwexAPIプラットフォームキー (Bearer Token): 下記の「API認証」に入力してください(API呼び出しと課金認証に使用)。
2. TwitterアカウントCookie: ツイート・いいね・フォロー等の書き込み操作のため、下記リクエストボディの cookie フィールドに対象TwitterアカウントのCookie(例: auth_token=...; ct0=...)を入力してください。
请在「请求配置」中确认参数后,点击底部的「发送请求」按钮。
curl -X POST "https://api.twexapi.io/twitter/delegate/accept" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"cookie": "YOUR_X_COOKIE_OR_AUTH_TOKEN",
"membership_id": "1234567890123456789"
}'const response = await fetch("https://api.twexapi.io/twitter/delegate/accept", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"cookie": "YOUR_X_COOKIE_OR_AUTH_TOKEN",
"membership_id": "1234567890123456789"
})
});import requests
response = requests.post(
"https://api.twexapi.io/twitter/delegate/accept",
headers={
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
json={
"cookie": "YOUR_X_COOKIE_OR_AUTH_TOKEN",
"membership_id": "1234567890123456789"
},
){
"code": 200,
"msg": "success",
"data": {
"membership_id": "1234567890123456789",
"role": "Contributor",
"screen_name": "example_owner",
"name": "Example Owner",
"user_id": "1234567890123456788"
}
}{
"code": 403,
"msg": "Authentication or credit access denied",
"data": []
}{
"code": 422,
"msg": "Invalid request",
"data": []
}{
"code": 500,
"msg": "Upstream or server error",
"data": null
}