Skip to content
This repository was archived by the owner on Feb 23, 2022. It is now read-only.
This repository was archived by the owner on Feb 23, 2022. It is now read-only.

Account Activity API add subscription resource url updates #9

@steffes

Description

@steffes

Last week the documentation for Account Activity API was updated.

When adding a subscription to a webhook, you don't need the webhook ID for the Standard Account Activity API like the one in

https://github.com/twitterdev/twitter-webhook-boilerplate-node/blob/e6ff99bc4ea548f8cef10f8f3a757710bab6aea1/example_scripts/webhook_management/add-subscription.js#L21

I was able to add a subscription via twurl
twurl -X POST /1.1/account_activity/all/env-beta/subscriptions.json

The issue is that the Enterprise Account Activity API still has :webhook_id in its resource url. But the url in add-subscription.js would still need to be updated because the resource for the enterprise API is
https://api.twitter.com/1.1/account_activity/webhooks/:webhook_id/subscriptions/all.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions