मुख्य सामग्री पर जाएं
POST
/
2
/
account_activity
/
webhooks
/
{webhook_id}
/
subscriptions
/
all
सदस्यता बनाएँ
curl --request POST \
  --url https://api.x.com/2/account_activity/webhooks/{webhook_id}/subscriptions/all \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "data": {
    "subscribed": true
  },
  "errors": [
    {
      "title": "<string>",
      "type": "<string>",
      "detail": "<string>",
      "status": 123
    }
  ]
}

प्राधिकरण

Authorization
string
header
आवश्यक

The access token received from the authorization server in the OAuth 2.0 flow.

पथ पैरामीटर

webhook_id
string
आवश्यक

वह webhook ID जिसके लिए सदस्यता की जाँच करनी है। इस webhook कॉन्फ़िगरेशन का अद्वितीय पहचानकर्ता।

Pattern: ^[0-9]{1,19}$
उदाहरण:

"1146654567674912769"

बॉडी

application/json

The body is of type object.

प्रतिक्रिया

अनुरोध सफल हुआ है।

data
object
errors
object[]
Minimum array length: 1

IETF RFC 7807 (https://tools.ietf.org/html/rfc7807) में परिभाषित एक HTTP Problem Details ऑब्जेक्ट।