Discussions

Ask a Question
Back to All

How can I replace some variables in code example?

Like I set a required authentication in headers, in curl code. it will show automatically.

curl --request GET \
     --url https://xxxxxxx \
     --header 'api-secret: testtest' \
     --header 'accept: application/json'

But if I want to use it in my own example, like python sdk. how can I use it.

api-secret=${api-secret}