Ticketmaster.Commerce
2.0.0
dotnet add package Ticketmaster.Commerce --version 2.0.0
NuGet\Install-Package Ticketmaster.Commerce -Version 2.0.0
<PackageReference Include="Ticketmaster.Commerce" Version="2.0.0" />
paket add Ticketmaster.Commerce --version 2.0.0
#r "nuget: Ticketmaster.Commerce, 2.0.0"
// Install Ticketmaster.Commerce as a Cake Addin
#addin nuget:?package=Ticketmaster.Commerce&version=2.0.0
// Install Ticketmaster.Commerce as a Cake Tool
#tool nuget:?package=Ticketmaster.Commerce&version=2.0.0
Ticketmaster.Commerce
This project contains client for Second version V2 of Ticketmaster Commerce API with base models for response.
Use the Ticketmaster Commerce API to look up available offers and products on various Ticketmaster platforms for North America markets. For formal partnerships and relationships, selected offers and products can be carted and transacted on through the cart, delivery, payment and purchase APIs – These APIs require approved access from Ticketmaster.
Installetion
You can install the last stable version of Ticketmaster.Commerce SDK using nuget.
PM> Install-Package Ticketmaster.Commerce
For more details about package please visit this.
Usage
Configuration
Usage of any client require <code>IClientConfig</code> to be implemented.
public interface IClientConfig
{
// Your API Key like : 'K1uJLzJ5mdt3oBKNSzjcEEEzxHuJJXiX'
string ConsumerKey { get; }
// The 'https://app.ticketmaster.com/commerce/' url to ticketmaster discovery api.
string ApiRootUrl { get; }
}
This interface common for implementation for all clients in SDK.
Event Offers Client
The IEventOffersClient interface contains methods for Get Event Offers and obtaining information about them. It has default implementation in EventOffersClient. The EventClient class has only one public constructor with two parameters
public EventOffersClient(IRestClient client, IClientConfig config)
All direct calls to API goings via IRestClient, that mean we have to set base URL for it from IClientConfig.
Basic creation of Event Offers Client
var client = new EventOffersClient(new RestClient(config.ApiRootUrl), config);
var request = new GetRequest("vv17FZfyGknaheGB");
var response = await client.GetEventOffersAsync(request);
The response structure
public class EventOffers : IApiResponse
{
public EventOffers()
{
Offers = new List<Offer>();
}
public Limits Limits { get; set; }
public Prices Prices { get; set; }
public MetaDataClass MetaData { get; set; }
public List<Offer> Offers { get; set; }
public EmbeddedDataClass _embedded { get; set; }
public class MetaDataClass
{
public EventMapping EventMapping { get; set; }
}
public class EmbeddedDataClass
{
public DataCollection<Price> PriceZones { get; set; }
public DataCollection<EmbeddedData> Areas { get; set; }
public DataCollection<AttributesClass> AttributesRefs { get; set; }
public DataCollection<EmbeddedData> Passwords { get; set; }
}
}
With any questions please contact Me
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Ticketmaster.Core (>= 2.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|
Converted to .Net Standard 2.0.3