Skip to content

Instantly share code, notes, and snippets.

@hidayat365
Created July 8, 2021 10:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hidayat365/3537694034243edea61e0b6e38ef3dfd to your computer and use it in GitHub Desktop.
Save hidayat365/3537694034243edea61e0b6e38ef3dfd to your computer and use it in GitHub Desktop.
Code in HTML
<div class="tab-content" id="curl" style="display: block;">
<div class="tab-content-button">
<button id="copy-curl" style="font-size: 12px">
<svg aria-hidden="true" class="svg-inline--fa fa-copy fa-w-14" data-fa-i2svg="" data-icon="copy" data-prefix="fas" focusable="false" role="img" viewbox="0 0 448 512" xmlns="http://www.w3.org/2000/svg">
<path d="M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z" fill="currentColor"></path>
</svg>
</button>
</div>
<div class="tab-content-code">
<pre class="highlight highlight-curl prettyprint">curl --location --request GET 'https://partner.api.bri.co.id/sandbox/v2/inquiry/888801000003301' \
--header 'BRI-Timestamp: 2021-07-06T08:52:21.886Z' \
--header 'BRI-Signature: B2Zxxx2Dxu/f/E7lkDgiYv0iBAwVCa56j/S6PHznsLM=' \
--header 'Authorization: Bearer xMssPT4lgcJtlbmOH3otgev8SXZX'
</pre>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment