Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eng 6888 dotnet 3.0.x documentation #409

Draft
wants to merge 23 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Logs
  • Loading branch information
greathouse committed Jul 1, 2024
commit 0f3b8b26eebb851865687a4da9bcd9e9965b5a29
23 changes: 18 additions & 5 deletions docs/api/logs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,24 @@ const logs = await bt.logs.list();
<TabItem value="csharp" label="C#">

```csharp showLineNumbers
using BasisTheory.net.Logs;

var client = new LogClient("<MANAGEMENT_API_KEY>");

var logs = await client.GetAsync();
using BasisTheory.net.Api;
using BasisTheory.net.Client;
using BasisTheory.net.Model;

Configuration config = new Configuration();
config.BasePath = "https://api.basistheory.com";
config.AddApiKey("BT-API-KEY", "YOUR_API_KEY");

var apiInstance = new LogsApi(config);
var entityType = "";
var entityId = "";
var startDate = DateTime.Parse("2013-10-20T19:20:30+01:00");
var endDate = DateTime.Parse("2013-10-20T19:20:30+01:00");
var page = 1;
var start = "";
var size = 1;

LogPaginatedList result = apiInstance.Get(entityType, entityId, startDate, endDate, page, start, size);
```

</TabItem>
Expand Down