You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: x-api/account-activity/migrate/overview.mdx
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ This guide helps you migrate from the legacy Enterprise Account Activity API to
5
5
### Summary of Changes
6
6
7
7
***API Format**: Endpoints use the /2/account\_activity/ base path instead of /1.1/account\_activity/.
8
-
***Webhook Management**: Webhook creation, listing, validation (CRC), and deletion are handled by the [V2 Webhooks API](https://developer.x.com/en/docs/webhooks).
8
+
***Webhook Management**: Webhook creation, listing, validation (CRC), and deletion are handled by the [V2 Webhooks API](https://github.com/m-rosinsky/XWebhookTest/blob/main/app.py).
9
9
***Authentication**: V2 endpoints require either:
10
10
***OAuthUser** (3-legged OAuth) for user-specific actions (e.g., subscribing a user).
| POST /1.1/account\_activity/webhooks.json?url=\<URL\>| POST /2/webhooks |[Docs](https://docs.x.com/x-api/webhooks/introduction). Requires OAuth2AppOnly. |
18
+
| GET /1.1/account\_activity/webhooks.json | GET /2/webhooks |[Docs](https://docs.x.com/x-api/webhooks/introduction). Requires OAuth2AppOnly. |
19
+
| PUT /1.1/account\_activity/webhooks/:webhook\_id.json | PUT /2/webhooks/:webhook\_id | Triggers CRC. [Docs](https://docs.x.com/x-api/webhooks/introduction). Requires OAuth2AppOnly. |
| POST /1.1/account\_activity/webhooks/:webhook\_id/subscriptions/all.json | POST /2/account\_activity/webhooks/:webhook\_id/subscriptions/all | Requires OAuthUser. |
22
22
| GET /1.1/account\_activity/subscriptions/count.json | GET /2/account\_activity/subscriptions/count | Requires OAuth2AppOnly. |
23
23
| GET /1.1/account\_activity/webhooks/:webhook\_id/subscriptions/all.json | GET /2/account\_activity/webhooks/:webhook\_id/subscriptions/all | Requires OAuthUser. |
@@ -27,7 +27,7 @@ This guide helps you migrate from the legacy Enterprise Account Activity API to
27
27
28
28
***Response Formats**: Review the success and error response structures in the AAAPI documentation.
29
29
30
-
When migrating, update your code to use the new base paths, adjust authentication flows, and manage webhooks using the [V2 Webhooks API](https://developer.x.com/en/docs/webhooks).
30
+
When migrating, update your code to use the new base paths, adjust authentication flows, and manage webhooks using the [V2 Webhooks API](https://docs.x.com/x-api/webhooks/introduction).
31
31
32
32
### How to Migrate
33
33
@@ -46,7 +46,7 @@ When migrating, update your code to use the new base paths, adjust authenticatio
46
46
* Client ID and Client Secret.
47
47
***Verify or Reconfigure Your Webhook**:
48
48
* Use your existing webhook URL or set up a new one (e.g., https://your\_domain.com/webhook/twitter).
49
-
* Follow the [V2 Webhooks API documentation](https://developer.x.com/en/docs/webhooks) to register and manage your webhook.
49
+
* Follow the [V2 Webhooks API documentation](https://docs.x.com/x-api/webhooks/introduction) to register and manage your webhook.
Copy file name to clipboardExpand all lines: x-api/webhooks/introduction.mdx
+2-20Lines changed: 2 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,23 +1,5 @@
1
1
# V2 Webhooks API
2
2
3
-
[V2 Account Activity API](#v2-webhooks-api)
4
-
5
-
[Overview](#overview)
6
-
7
-
[Feature summary](#feature-summary)
8
-
9
-
[Manage Webhooks](#manage-webhooks)
10
-
11
-
[1\. Develop A Webhook Consumer App](#1.-develop-a-webhook-consumer-app)
12
-
13
-
[2\. Securing Webhooks](#2.-securing-webhooks)
14
-
15
-
[3\. The Webhooks API](#3.-the-webhooks-api)
16
-
17
-
[4\. The CRC Check](#4.-the-crc-check)
18
-
19
-
---
20
-
21
3
## Overview
22
4
23
5
@@ -49,7 +31,7 @@ There are several details that need attention before you can start receiving web
49
31
50
32
In order to register a new webhook associated with your X app, you’ll need to develop, deploy and host a web app that receives X webhook events, and responds to our security requests.
51
33
52
-
*Before you get started, we recommend checking out our [sample apps](#sample-apps)\!*
34
+
*Before you get started, we recommend checking out our [sample apps](https://github.com/xdevplatform/account-activity-dashboard-enterprise/tree/master)\!*
53
35
54
36
* Create a web app with a publicly accessible HTTPS URL that will act as the webhook endpoint to receive events.
55
37
* The URI *path* is completely up to you. This example would be valid: [https://mydomain.com/service/listen](https://mydomain.com/service/listen)
@@ -96,7 +78,7 @@ Starting local HTTP server to handle requests from ngrok tunnel (forwarded from
96
78
97
79
* See example code:
98
80
99
-
*[Enterprise Account Activity API Setup](https://github.com/m-rosinsky/XWebhookTest), a node web app that displays webhook events using the enterprise tier of the Account Activity API.
81
+
*[Account Activity API Setup](https://github.com/m-rosinsky/XWebhookTest), a node web app that displays webhook events using the enterprise tier of the Account Activity API.
0 commit comments