This repository has been archived by the owner on Apr 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update token format and use new token api
- Loading branch information
1 parent
2624f7b
commit 3bff02c
Showing
3 changed files
with
15 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 13 additions & 1 deletion
14
DragonFruit.Six.Api/Services/Developer/Dragon6TokenRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,22 @@ | ||
// Dragon6 API Copyright DragonFruit Network <inbox@dragonfruit.network> | ||
// Licensed under Apache-2. Refer to the LICENSE file for more info | ||
|
||
using DragonFruit.Data; | ||
using DragonFruit.Data.Parameters; | ||
using DragonFruit.Six.Api.Enums; | ||
|
||
namespace DragonFruit.Six.Api.Services.Developer | ||
{ | ||
public class Dragon6TokenRequest : Dragon6DeveloperApiRequest | ||
{ | ||
public override string Path => "https://dragon6.dragonfruit.network/api/v2/dev/token"; | ||
public override string Path => "https://dragon6.dragonfruit.network/api/v3/token/raw"; | ||
|
||
public Dragon6TokenRequest(UbisoftService service) | ||
{ | ||
Service = service; | ||
} | ||
|
||
[QueryParameter("appid", EnumHandlingMode.StringLower)] | ||
public UbisoftService Service { get; } | ||
} | ||
} |