Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save sts-developer/3ed767d83b6e35785757b92b9a339d8c to your computer and use it in GitHub Desktop.
Business List Logic in C#
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://testapi.taxbandits.com/v1.7.3/Business/List?Page=1&PageSize=10&FromDate=08/01/2024&ToDate=08/02/2025");
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