Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request #372 from aspriddell/add-server-token-limits
Browse files Browse the repository at this point in the history
use new stats site token source
  • Loading branch information
aspriddell committed Feb 19, 2023
2 parents b300685 + 4fe6992 commit db9d461
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions DragonFruit.Six.Api/Modern/Requests/ModernStatsRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,17 @@ public abstract class ModernStatsRequest : UbiApiRequest, IRequestExecutingCallb
private const string DateTimeFormat = "yyyyMMdd";
private const int DefaultStartWindow = 14;

private static readonly DateTimeOffset CrossPlatformStartDate = new(2022, 12, 6, 0, 0, 0, TimeSpan.Zero);

private PlaylistType? _playlist;
private OperatorType? _operatorType;
private DateTimeOffset? _startDate, _endDate;

protected readonly IList<KeyValuePair<string, string>> Queries;

private static readonly DateTimeOffset CrossPlatformStartDate = new(2022, 12, 6, 0, 0, 0, TimeSpan.Zero);

public override string Path => $"https://prod.datadev.ubisoft.com/v1/users/{Account.UbisoftId}/playerstats";

protected override UbisoftService? RequiredTokenSource => UbisoftService.NewStatsSite;
protected override IEnumerable<KeyValuePair<string, string>> AdditionalQueries => Queries;

protected ModernStatsRequest(UbisoftAccount account)
Expand Down

0 comments on commit db9d461

Please sign in to comment.