Skip to content

Instantly share code, notes, and snippets.

@sts-developer
Last active July 3, 2024 13:24
Show Gist options
  • Select an option

  • Save sts-developer/bc02443eff4be413fc4e101a6621202b to your computer and use it in GitHub Desktop.

Select an option

Save sts-developer/bc02443eff4be413fc4e101a6621202b to your computer and use it in GitHub Desktop.
Business Get Logic in C#
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