What is a env_name?

webhooks

#1

I might be asking a very silly question, but is env_name same as “Dev environment label” at https://developer.twitter.com/en/account/environments ?
In the document, when registering a webhook, $ curl --request POST
–url ‘https://api.twitter.com/1.1/account_activity/all/:ENV_NAME/webhooks.json?url=https%3A%2F%2Fyour_domain.com%2Fwebhook%2Ftwitter…’, I’m not sure what to put in as the “:ENV_NAME”


#2

Hi @AdapterTest. No such thing as a silly question here.

You are correct! On the dev environments page you’ll need to name your environment, and where it shows ENV_NAME in the sample URL you’ll want to replace that with whatever you’ve named your environment as.

For example, I use prod as my dev environment name, so my URL looks something like this:

https://api.twitter.com/1.1/account_activity/all/prod/webhooks.json

07%20PM

Hamza


#3

Thank you so much for the clarification!


#4