Last active
July 3, 2024 13:24
-
-
Save sts-developer/bc02443eff4be413fc4e101a6621202b to your computer and use it in GitHub Desktop.
Business Get Logic in C#
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var client = new HttpClient(); | |
| var request = new HttpRequestMessage(HttpMethod.Get, "https://testapi.taxbandits.com/v1.7.3/Business/Get?BusinessId=559fa96a-a9fd-495e-a8c1-cdf3572a2b9c&TIN=003313335&PayerRef=Pe1261456"); | |
| request.Headers.Add("Authorization", "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJodHRwczovL3Rlc3RvYXV0aC5leHByZXNzYXV0aC5uZXQvdjIvIiwic3ViIjoiYTQyMWE2MWUzOWUyY2U3ZSIsImF1ZCI6ImVjMTQ1MjFiMzE0ZjQ3ZGE5Nzk4MzNiNWVmOTE0NTllIiwiaWF0IjoxNzIwMDEyNjkxLCJleHAiOjE3MjAwMTYyOTF9.MCscmYtHNgFf4emMoEOeOnCJMlAy5AP0LUWkWoNivoU"); | |
| var response = await client.SendAsync(request); | |
| Console.WriteLine(await response.Content.ReadAsStringAsync()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment