An open API service indexing awesome lists of open source software.

https://github.com/dentsudatalab/adobe-analytics-api

Adobe Analytics API wrapper for .NET
https://github.com/dentsudatalab/adobe-analytics-api

adobe-analytics adobe-analytics-api api api-wrapper csharp nuget-package package

Last synced: 2 months ago
JSON representation

Adobe Analytics API wrapper for .NET

Awesome Lists containing this project

README

        

# Adobe Reporting API for .NET

![.NET 2.2 CD](https://github.com/dentsudatalab/Adobe-Analytics-API/workflows/.NET%202.2%20CD/badge.svg) ![.NET 2.2 CI](https://github.com/Dentsudatalab/Adobe-Analytics-API/workflows/.NET%202.2%20CI/badge.svg) ![CodeQL](https://github.com/Dentsudatalab/Adobe-Analytics-API/workflows/CodeQL/badge.svg)

A .NET project written to make using the [Adobe Reporting API](https://www.adobe.io/apis/experiencecloud/analytics/docs.html) easy.

## Getting Started

These instructions will guide you through installing and using the package to access the Adobe Reporting API.

### Installing

First, [install NuGet](http://docs.nuget.org/docs/start-here/installing-nuget). Then, install the NuGet package [Adobe Reporting API](https://www.nuget.org/packages/DentsuDataLab.Adobe/) into your application:

```
PM> Install-Package DentsuDataLab.Adobe
```

### Using the services

The easiest way to get started using the API wrapper is by using the `IServiceCollection` extension that the project includes. All the required dependencies can be configured with the following:

```csharp
public void ConfigureServices(IServiceCollection services)
{
services.AddAdobeServices();
}
```

Alternatively you can manually create a service like this:

```csharp
var httpClient = new HttpClient();
var clientStore = new AdobeClientStore(); // Keep this, as it stores tokens, so you won't have to authorize for every call
var authService = new AdobeAuthorizationService(clientStore);
var reportService = new ReportService(httpClient, authService);
```

### Services available

The following services are available:

- [DimensionService](Adobe/Documentation/DimensionService.md)
- [MetricService](Adobe/Documentation/MetricService.md)
- [ReportService](Adobe/Documentation/ReportService.md)
- [ReportSuiteService](Adobe/Documentation/ReportSuiteService.md)
- [SegmentService](Adobe/Documentation/SegmentService.md)
- [UserService](Adobe/Documentation/UserService.md)

## Authors

- **Frederik Baun Hansen** - Primary developer
- **Kasper Hesthaven**

## License

This project is licensed under the MIT License - see the [LICENSE.txt](LICENSE.txt) file for details.

## Contributing

For details on contributing to this repository, see the [contributing guide](CONTRIBUTING.md).