Logo
Developer Experience API Documentation

Use variables for secrets

GET https://api.twitter.com/1.1/users/show.json?screen_name={{myTwitterHandle}}

Another great use for variables is [to store your secrets] instead of hard-coding your confidential data. Remember to update your secrets with placeholder text, so you don’t leak any confidential information.

Twitter example

If you have a Twitter Developer account, go ahead and plug in your Twitter credentials under the Authorization tab, and then update {{myTwitterHandle}} under the Params tab.

 

Body PARAM

Key Datatype Required Description 
screen_name
string



HEADERS

Key Datatype Required Description 




RESPONSES

status





Curl
curl -X GET 'https://api.twitter.com/1.1/users/show.json?screen_name=myTwitterHandle?screen_name=myTwitterHandle'

ENDPOINTS