To send a GET request with a Bearer Token authorization header using Curl, you need to make an HTTP GET request and provide your Bearer Token with the Authorization: Bearer {token} HTTP header.
Jilsoft says:
curl https://api.paystack.co/transaction/verify/:reference
Use below command.
curl -X GET https://api.paystack.co/transaction/verify/:reference
-H "Accept: application/json"
-H "Authorization: Bearer {YOUR_SECRET_KEY}"
VB.Net
Dim url = "https://api.paystack.co/transaction/verify/:reference"
Dim httpRequest = CType(WebRequest.Create(url), HttpWebRequest)
httpRequest.Accept = "application/json"
httpRequest.Headers("Authorization") = "Bearer {YOUR_SECRET_KEY}"
Dim httpResponse = CType(httpRequest.GetResponse(), HttpWebResponse)
Using streamReader = New StreamReader(httpResponse.GetResponseStream())
Dim result = streamReader.ReadToEnd()
End Using