Skip to content

Commit b6dbf91

Browse files
Updated from pipeline, Version : 12.1.2
1 parent 55f94f6 commit b6dbf91

File tree

102 files changed

+1427
-912
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+1427
-912
lines changed

.variables

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
export LEVEL=CRITICAL
22
export REPO_NAME=justice-unreal-sdk-plugin
3-
export WORKDIR=/tmp/pipelines/2492632116/545633924/
4-
export COMMIT_HASH=f2b7c172aa5a9f00d9d1945e39d47e6722c33ce7
5-
export GIT_HASH=f2b7c172aa5a9f00d9d1945e39d47e6722c33ce7
6-
export VERSION=12.1.1
7-
export REVISION_ID=12.1.1
3+
export WORKDIR=/tmp/pipelines/2525910796/551879339/
4+
export COMMIT_HASH=00301f87262a9538b4981b1d57ff604edc7c12fb
5+
export GIT_HASH=00301f87262a9538b4981b1d57ff604edc7c12fb
6+
export VERSION=12.1.2
7+
export REVISION_ID=12.1.2
88
9-
export COMMIT_MESSAGE_BASE64='Y2hvcmUocmVsZWFzZSk6IDEyLjEuMSAtIGNvbW1pdGVkIGFuZCB0YWdnZWQgYnkgSmVua2lucwo='
9+
export COMMIT_MESSAGE_BASE64='Y2hvcmUocmVsZWFzZSk6IDEyLjEuMiAtIGNvbW1pdGVkIGFuZCB0YWdnZWQgYnkgSmVua2lucwo='

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,30 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
### [12.1.2](https://bitbucket.org/accelbyte/justice-unreal-sdk-plugin/branches/compare/12.1.2%0D12.1.1) (2022-05-31)
6+
7+
8+
### Features
9+
10+
* **DSM:** Add register game session in DSM ([ef0d18e](https://bitbucket.org/accelbyte/justice-unreal-sdk-plugin/commits/ef0d18edc61a0c6a9f0ff06312dea4a6a51818b4))
11+
* **entitlement:** add SyncMobilePlatformPurchaseGooglePlay blueprint ([90545bb](https://bitbucket.org/accelbyte/justice-unreal-sdk-plugin/commits/90545bb50e99af86861df968f702e209aa563645))
12+
13+
14+
### Bug Fixes
15+
16+
* change the source of truth for OAuth client Id and Secret to Credentials class ([76da937](https://bitbucket.org/accelbyte/justice-unreal-sdk-plugin/commits/76da93736ab2f1d3efc1e14f75cd38c3eddc5224))
17+
* compile errors when targeting Linux platform due to incorrect code implementation ([4bd2dd5](https://bitbucket.org/accelbyte/justice-unreal-sdk-plugin/commits/4bd2dd5a8fb799a98c412bfcf3f79e3128fa97f9))
18+
19+
20+
### Tests
21+
22+
* update test cases to handle the changes on source of truth for OAuth client credentials ([0334121](https://bitbucket.org/accelbyte/justice-unreal-sdk-plugin/commits/0334121698468d57e21ebcdcd8ac65ab1438393f))
23+
24+
25+
### Refactors
26+
27+
* rename parameters in the constructor to use different name with the class fields ([e1be08a](https://bitbucket.org/accelbyte/justice-unreal-sdk-plugin/commits/e1be08ab210ad5ba54d5b4d64154ca432af65f32))
28+
529
### [12.1.1](https://bitbucket.org/accelbyte/justice-unreal-sdk-plugin/branches/compare/12.1.1%0D12.1.0) (2022-05-23)
630

731

Content/CompatibilityMap.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@
4848
"maxVersion": "1.13.3"
4949
},
5050
"dsmcontroller": {
51-
"minVersion": "3.1.0",
52-
"maxVersion": "3.1.0"
51+
"minVersion": "3.1.1",
52+
"maxVersion": "3.1.1"
5353
},
5454
"game-telemetry": {
5555
"minVersion": "1.7.0",

Source/AccelByteUe4Sdk/Private/Api/AccelByteAchievementApi.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ namespace AccelByte
1515
namespace Api
1616
{
1717

18-
Achievement::Achievement(
19-
Credentials const& CredentialsRef,
20-
Settings const& SettingsRef,
21-
FHttpRetryScheduler& HttpRef)
22-
:
23-
HttpRef{HttpRef},
24-
CredentialsRef{CredentialsRef},
25-
SettingsRef{SettingsRef} {}
26-
27-
Achievement::~Achievement(){}
18+
Achievement::Achievement(Credentials const& InCredentialsRef
19+
, Settings const& InSettingsRef
20+
, FHttpRetryScheduler& InHttpRef)
21+
: HttpRef{InHttpRef}
22+
, CredentialsRef{InCredentialsRef}
23+
, SettingsRef{InSettingsRef}
24+
{}
25+
26+
Achievement::~Achievement()
27+
{}
2828

2929
FString Achievement::ConvertAchievementSortByToString(const EAccelByteAchievementListSortBy& SortBy)
3030
{

Source/AccelByteUe4Sdk/Private/Api/AccelByteAgreementApi.cpp

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,12 @@ namespace AccelByte
1313
{
1414
namespace Api
1515
{
16-
Agreement::Agreement(
17-
Credentials const& CredentialsRef,
18-
Settings const& SettingsRef,
19-
FHttpRetryScheduler& HttpRef)
20-
:
21-
HttpRef{HttpRef},
22-
CredentialsRef(CredentialsRef),
23-
SettingsRef(SettingsRef)
16+
Agreement::Agreement(Credentials const& InCredentialsRef
17+
, Settings const& InSettingsRef
18+
, FHttpRetryScheduler& InHttpRef)
19+
: HttpRef{InHttpRef}
20+
, CredentialsRef{InCredentialsRef}
21+
, SettingsRef{InSettingsRef}
2422
{}
2523

2624
Agreement::~Agreement()

Source/AccelByteUe4Sdk/Private/Api/AccelByteCategoryApi.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ namespace AccelByte
1414
{
1515
namespace Api
1616
{
17-
Category::Category(
18-
const AccelByte::Credentials& CredentialsRef,
19-
const AccelByte::Settings& SettingsRef,
20-
FHttpRetryScheduler& HttpRef)
21-
:
22-
HttpRef{HttpRef},
23-
CredentialsRef{CredentialsRef},
24-
SettingsRef{SettingsRef} {}
25-
26-
Category::~Category(){}
17+
Category::Category(Credentials const& InCredentialsRef
18+
, Settings const& InSettingsRef
19+
, FHttpRetryScheduler& InHttpRef)
20+
: HttpRef{InHttpRef}
21+
, CredentialsRef{InCredentialsRef}
22+
, SettingsRef{InSettingsRef}
23+
{}
24+
25+
Category::~Category()
26+
{}
2727

2828
void Category::GetRootCategories(const FString& Language, const THandler<TArray<FAccelByteModelsCategoryInfo>>& OnSuccess, const FErrorHandler& OnError)
2929
{

Source/AccelByteUe4Sdk/Private/Api/AccelByteCloudSaveApi.cpp

Lines changed: 33 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,16 @@ namespace AccelByte
1515
{
1616
namespace Api
1717
{
18-
CloudSave::CloudSave(
19-
AccelByte::Credentials const& Credentials,
20-
AccelByte::Settings const& Setting,
21-
FHttpRetryScheduler& HttpRef)
22-
:
23-
HttpRef{HttpRef},
24-
Credentials{Credentials},
25-
Settings{Setting}
26-
{
27-
}
18+
CloudSave::CloudSave(Credentials const& InCredentialsRef
19+
, Settings const& InSettingsRef
20+
, FHttpRetryScheduler& InHttpRef)
21+
: HttpRef{InHttpRef}
22+
, CredentialsRef{InCredentialsRef}
23+
, SettingsRef{InSettingsRef}
24+
{}
2825

29-
CloudSave::~CloudSave(){}
26+
CloudSave::~CloudSave()
27+
{}
3028

3129
void CloudSave::SaveUserRecord(const FString& Key, bool bSetPublic, const FJsonObject& RecordRequest, const FVoidHandler& OnSuccess, const FErrorHandler& OnError)
3230
{
@@ -40,8 +38,8 @@ void CloudSave::SaveUserRecord(FString const& Key, FJsonObject RecordRequest, bo
4038
{
4139
FReport::Log(FString(__FUNCTION__));
4240

43-
FString Authorization = FString::Printf(TEXT("Bearer %s"), *Credentials.GetAccessToken());
44-
FString Url = FString::Printf(TEXT("%s/v1/namespaces/%s/users/%s/records/%s%s"), *Settings.CloudSaveServerUrl, *Credentials.GetNamespace(), *Credentials.GetUserId(), *Key, (IsPublic ? TEXT("/public") : TEXT("")));
41+
FString Authorization = FString::Printf(TEXT("Bearer %s"), *CredentialsRef.GetAccessToken());
42+
FString Url = FString::Printf(TEXT("%s/v1/namespaces/%s/users/%s/records/%s%s"), *SettingsRef.CloudSaveServerUrl, *CredentialsRef.GetNamespace(), *CredentialsRef.GetUserId(), *Key, (IsPublic ? TEXT("/public") : TEXT("")));
4543
FString Verb = TEXT("POST");
4644
FString ContentType = TEXT("application/json");
4745
FString Accept = TEXT("application/json");
@@ -65,8 +63,8 @@ void CloudSave::GetUserRecord(FString const& Key, THandler<FAccelByteModelsUserR
6563
{
6664
FReport::Log(FString(__FUNCTION__));
6765

68-
FString Authorization = FString::Printf(TEXT("Bearer %s"), *Credentials.GetAccessToken());
69-
FString Url = FString::Printf(TEXT("%s/v1/namespaces/%s/users/%s/records/%s"), *Settings.CloudSaveServerUrl, *Credentials.GetNamespace(), *Credentials.GetUserId(), *Key);
66+
FString Authorization = FString::Printf(TEXT("Bearer %s"), *CredentialsRef.GetAccessToken());
67+
FString Url = FString::Printf(TEXT("%s/v1/namespaces/%s/users/%s/records/%s"), *SettingsRef.CloudSaveServerUrl, *CredentialsRef.GetNamespace(), *CredentialsRef.GetUserId(), *Key);
7068
FString Verb = TEXT("GET");
7169
FString ContentType = TEXT("application/json");
7270
FString Accept = TEXT("application/json");
@@ -114,8 +112,8 @@ void CloudSave::GetPublicUserRecord(FString const& Key, FString const& UserId, T
114112
{
115113
FReport::Log(FString(__FUNCTION__));
116114

117-
FString Authorization = FString::Printf(TEXT("Bearer %s"), *Credentials.GetAccessToken());
118-
FString Url = FString::Printf(TEXT("%s/v1/namespaces/%s/users/%s/records/%s/public"), *Settings.CloudSaveServerUrl, *Credentials.GetNamespace(), *UserId, *Key);
115+
FString Authorization = FString::Printf(TEXT("Bearer %s"), *CredentialsRef.GetAccessToken());
116+
FString Url = FString::Printf(TEXT("%s/v1/namespaces/%s/users/%s/records/%s/public"), *SettingsRef.CloudSaveServerUrl, *CredentialsRef.GetNamespace(), *UserId, *Key);
119117
FString Verb = TEXT("GET");
120118
FString ContentType = TEXT("application/json");
121119
FString Accept = TEXT("application/json");
@@ -176,8 +174,8 @@ void CloudSave::BulkGetPublicUserRecord(FString const& Key, const TArray<FString
176174

177175
const FListBulkUserInfoRequest UserList{ UserIds };
178176

179-
FString Authorization = FString::Printf(TEXT("Bearer %s"), *Credentials.GetAccessToken());
180-
FString Url = FString::Printf(TEXT("%s/v1/namespaces/%s/users/bulk/records/%s/public"), *Settings.CloudSaveServerUrl, *Credentials.GetNamespace(), *Key);
177+
FString Authorization = FString::Printf(TEXT("Bearer %s"), *CredentialsRef.GetAccessToken());
178+
FString Url = FString::Printf(TEXT("%s/v1/namespaces/%s/users/bulk/records/%s/public"), *SettingsRef.CloudSaveServerUrl, *CredentialsRef.GetNamespace(), *Key);
181179
FString Verb = TEXT("POST");
182180
FString ContentType = TEXT("application/json");
183181
FString Accept = TEXT("application/json");
@@ -240,8 +238,8 @@ void CloudSave::ReplaceUserRecord(FString const& Key, FJsonObject RecordRequest,
240238
{
241239
FReport::Log(FString(__FUNCTION__));
242240

243-
FString Authorization = FString::Printf(TEXT("Bearer %s"), *Credentials.GetAccessToken());
244-
FString Url = FString::Printf(TEXT("%s/v1/namespaces/%s/users/%s/records/%s%s"), *Settings.CloudSaveServerUrl, *Credentials.GetNamespace(), *Credentials.GetUserId(), *Key, (IsPublic ? TEXT("/public") : TEXT("")));
241+
FString Authorization = FString::Printf(TEXT("Bearer %s"), *CredentialsRef.GetAccessToken());
242+
FString Url = FString::Printf(TEXT("%s/v1/namespaces/%s/users/%s/records/%s%s"), *SettingsRef.CloudSaveServerUrl, *CredentialsRef.GetNamespace(), *CredentialsRef.GetUserId(), *Key, (IsPublic ? TEXT("/public") : TEXT("")));
245243
FString Verb = TEXT("PUT");
246244
FString ContentType = TEXT("application/json");
247245
FString Accept = TEXT("application/json");
@@ -265,8 +263,8 @@ void CloudSave::ReplaceUserRecord(int TryAttempt, FString const& Key, FAccelByte
265263
{
266264
FReport::Log(FString(__FUNCTION__));
267265

268-
FString Authorization = FString::Printf(TEXT("Bearer %s"), *Credentials.GetAccessToken());
269-
FString Url = FString::Printf(TEXT("%s/v1/namespaces/%s/users/%s/concurrent/records/%s/public"), *Settings.CloudSaveServerUrl, *Credentials.GetNamespace(), *Credentials.GetUserId(), *Key);
266+
FString Authorization = FString::Printf(TEXT("Bearer %s"), *CredentialsRef.GetAccessToken());
267+
FString Url = FString::Printf(TEXT("%s/v1/namespaces/%s/users/%s/concurrent/records/%s/public"), *SettingsRef.CloudSaveServerUrl, *CredentialsRef.GetNamespace(), *CredentialsRef.GetUserId(), *Key);
270268
FString Verb = TEXT("PUT");
271269
FString ContentType = TEXT("application/json");
272270
FString Accept = TEXT("application/json");
@@ -391,8 +389,8 @@ void CloudSave::DeleteUserRecord(FString const& Key, FVoidHandler const& OnSucce
391389
{
392390
FReport::Log(FString(__FUNCTION__));
393391

394-
FString Authorization = FString::Printf(TEXT("Bearer %s"), *Credentials.GetAccessToken());
395-
FString Url = FString::Printf(TEXT("%s/v1/namespaces/%s/users/%s/records/%s"), *Settings.CloudSaveServerUrl, *Credentials.GetNamespace(), *Credentials.GetUserId(), *Key);
392+
FString Authorization = FString::Printf(TEXT("Bearer %s"), *CredentialsRef.GetAccessToken());
393+
FString Url = FString::Printf(TEXT("%s/v1/namespaces/%s/users/%s/records/%s"), *SettingsRef.CloudSaveServerUrl, *CredentialsRef.GetNamespace(), *CredentialsRef.GetUserId(), *Key);
396394
FString Verb = TEXT("DELETE");
397395
FString ContentType = TEXT("application/json");
398396
FString Accept = TEXT("application/json");
@@ -413,8 +411,8 @@ void CloudSave::SaveGameRecord(FString const& Key, FJsonObject RecordRequest, FV
413411
{
414412
FReport::Log(FString(__FUNCTION__));
415413

416-
FString Authorization = FString::Printf(TEXT("Bearer %s"), *Credentials.GetAccessToken());
417-
FString Url = FString::Printf(TEXT("%s/v1/namespaces/%s/records/%s"), *Settings.CloudSaveServerUrl, *Credentials.GetNamespace(), *Key);
414+
FString Authorization = FString::Printf(TEXT("Bearer %s"), *CredentialsRef.GetAccessToken());
415+
FString Url = FString::Printf(TEXT("%s/v1/namespaces/%s/records/%s"), *SettingsRef.CloudSaveServerUrl, *CredentialsRef.GetNamespace(), *Key);
418416
FString Verb = TEXT("POST");
419417
FString ContentType = TEXT("application/json");
420418
FString Accept = TEXT("application/json");
@@ -438,8 +436,8 @@ void CloudSave::GetGameRecord(FString const& Key, THandler<FAccelByteModelsGameR
438436
{
439437
FReport::Log(FString(__FUNCTION__));
440438

441-
FString Authorization = FString::Printf(TEXT("Bearer %s"), *Credentials.GetAccessToken());
442-
FString Url = FString::Printf(TEXT("%s/v1/namespaces/%s/records/%s"), *Settings.CloudSaveServerUrl, *Credentials.GetNamespace(), *Key);
439+
FString Authorization = FString::Printf(TEXT("Bearer %s"), *CredentialsRef.GetAccessToken());
440+
FString Url = FString::Printf(TEXT("%s/v1/namespaces/%s/records/%s"), *SettingsRef.CloudSaveServerUrl, *CredentialsRef.GetNamespace(), *Key);
443441
FString Verb = TEXT("GET");
444442
FString ContentType = TEXT("application/json");
445443
FString Accept = TEXT("application/json");
@@ -481,8 +479,8 @@ void CloudSave::ReplaceGameRecord(FString const& Key, FJsonObject RecordRequest,
481479
{
482480
FReport::Log(FString(__FUNCTION__));
483481

484-
FString Authorization = FString::Printf(TEXT("Bearer %s"), *Credentials.GetAccessToken());
485-
FString Url = FString::Printf(TEXT("%s/v1/namespaces/%s/records/%s"), *Settings.CloudSaveServerUrl, *Credentials.GetNamespace(), *Key);
482+
FString Authorization = FString::Printf(TEXT("Bearer %s"), *CredentialsRef.GetAccessToken());
483+
FString Url = FString::Printf(TEXT("%s/v1/namespaces/%s/records/%s"), *SettingsRef.CloudSaveServerUrl, *CredentialsRef.GetNamespace(), *Key);
486484
FString Verb = TEXT("PUT");
487485
FString ContentType = TEXT("application/json");
488486
FString Accept = TEXT("application/json");
@@ -506,8 +504,8 @@ void CloudSave::ReplaceGameRecord(int TryAttempt, FString const& Key, FAccelByte
506504
{
507505
FReport::Log(FString(__FUNCTION__));
508506

509-
FString Authorization = FString::Printf(TEXT("Bearer %s"), *Credentials.GetAccessToken());
510-
FString Url = FString::Printf(TEXT("%s/v1/namespaces/%s/concurrent/records/%s"), *Settings.CloudSaveServerUrl, *Credentials.GetNamespace(), *Key);
507+
FString Authorization = FString::Printf(TEXT("Bearer %s"), *CredentialsRef.GetAccessToken());
508+
FString Url = FString::Printf(TEXT("%s/v1/namespaces/%s/concurrent/records/%s"), *SettingsRef.CloudSaveServerUrl, *CredentialsRef.GetNamespace(), *Key);
511509
FString Verb = TEXT("PUT");
512510
FString ContentType = TEXT("application/json");
513511
FString Accept = TEXT("application/json");
@@ -631,8 +629,8 @@ void CloudSave::DeleteGameRecord(FString const& Key, FVoidHandler const& OnSucce
631629
{
632630
FReport::Log(FString(__FUNCTION__));
633631

634-
FString Authorization = FString::Printf(TEXT("Bearer %s"), *Credentials.GetAccessToken());
635-
FString Url = FString::Printf(TEXT("%s/v1/namespaces/%s/records/%s"), *Settings.CloudSaveServerUrl, *Credentials.GetNamespace(), *Key);
632+
FString Authorization = FString::Printf(TEXT("Bearer %s"), *CredentialsRef.GetAccessToken());
633+
FString Url = FString::Printf(TEXT("%s/v1/namespaces/%s/records/%s"), *SettingsRef.CloudSaveServerUrl, *CredentialsRef.GetNamespace(), *Key);
636634
FString Verb = TEXT("DELETE");
637635
FString ContentType = TEXT("application/json");
638636
FString Accept = TEXT("application/json");

Source/AccelByteUe4Sdk/Private/Api/AccelByteCloudStorageApi.cpp

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,21 @@ namespace AccelByte
1313
{
1414
namespace Api
1515
{
16-
CloudStorage::CloudStorage(const AccelByte::Credentials& Credentials, const AccelByte::Settings& Settings) : Credentials(Credentials), Settings(Settings){}
16+
CloudStorage::CloudStorage(Credentials const& InCredentialsRef
17+
, Settings const& InSettingsRef)
18+
: CredentialsRef{InCredentialsRef}
19+
, SettingsRef{InSettingsRef}
20+
{}
1721

18-
CloudStorage::~CloudStorage(){}
22+
CloudStorage::~CloudStorage()
23+
{}
1924

2025
void CloudStorage::GetAllSlots(const THandler<TArray<FAccelByteModelsSlot>>& OnSuccess, const FErrorHandler& OnError)
2126
{
2227
FReport::Log(FString(__FUNCTION__));
2328

24-
FString Authorization = FString::Printf(TEXT("Bearer %s"), *Credentials.GetAccessToken());
25-
FString Url = FString::Printf(TEXT("%s/public/namespaces/%s/users/%s/slots"), *Settings.CloudStorageServerUrl, *Credentials.GetNamespace(), *Credentials.GetUserId());
29+
FString Authorization = FString::Printf(TEXT("Bearer %s"), *CredentialsRef.GetAccessToken());
30+
FString Url = FString::Printf(TEXT("%s/public/namespaces/%s/users/%s/slots"), *SettingsRef.CloudStorageServerUrl, *CredentialsRef.GetNamespace(), *CredentialsRef.GetUserId());
2631
FString Verb = TEXT("GET");
2732
FString ContentType = TEXT("application/json");
2833
FString Accept = TEXT("application/json");
@@ -43,8 +48,8 @@ namespace Api
4348
{
4449
FReport::Log(FString(__FUNCTION__));
4550

46-
FString Authorization = FString::Printf(TEXT("Bearer %s"), *Credentials.GetAccessToken());
47-
FString Url = FString::Printf(TEXT("%s/public/namespaces/%s/users/%s/slots"), *Settings.CloudStorageServerUrl, *Credentials.GetNamespace(), *Credentials.GetUserId());
51+
FString Authorization = FString::Printf(TEXT("Bearer %s"), *CredentialsRef.GetAccessToken());
52+
FString Url = FString::Printf(TEXT("%s/public/namespaces/%s/users/%s/slots"), *SettingsRef.CloudStorageServerUrl, *CredentialsRef.GetNamespace(), *CredentialsRef.GetUserId());
4853

4954
if (Tags.Num() != 0 || !Label.IsEmpty())
5055
{
@@ -86,8 +91,8 @@ namespace Api
8691
{
8792
FReport::Log(FString(__FUNCTION__));
8893

89-
FString Authorization = FString::Printf(TEXT("Bearer %s"), *Credentials.GetAccessToken());
90-
FString Url = FString::Printf(TEXT("%s/public/namespaces/%s/users/%s/slots/%s"), *Settings.CloudStorageServerUrl, *Credentials.GetNamespace(), *Credentials.GetUserId(), *SlotID);
94+
FString Authorization = FString::Printf(TEXT("Bearer %s"), *CredentialsRef.GetAccessToken());
95+
FString Url = FString::Printf(TEXT("%s/public/namespaces/%s/users/%s/slots/%s"), *SettingsRef.CloudStorageServerUrl, *CredentialsRef.GetNamespace(), *CredentialsRef.GetUserId(), *SlotID);
9196
FString Verb = TEXT("GET");
9297
FString ContentType = TEXT("application/json");
9398
FString Accept = TEXT("*/*");
@@ -108,8 +113,8 @@ namespace Api
108113
{
109114
FReport::Log(FString(__FUNCTION__));
110115

111-
FString Authorization = FString::Printf(TEXT("Bearer %s"), *Credentials.GetAccessToken());
112-
FString Url = FString::Printf(TEXT("%s/public/namespaces/%s/users/%s/slots/%s"), *Settings.CloudStorageServerUrl, *Credentials.GetNamespace(), *Credentials.GetUserId(), *SlotID);
116+
FString Authorization = FString::Printf(TEXT("Bearer %s"), *CredentialsRef.GetAccessToken());
117+
FString Url = FString::Printf(TEXT("%s/public/namespaces/%s/users/%s/slots/%s"), *SettingsRef.CloudStorageServerUrl, *CredentialsRef.GetNamespace(), *CredentialsRef.GetUserId(), *SlotID);
113118

114119
if (Tags.Num() != 0 || !Label.IsEmpty())
115120
{
@@ -160,8 +165,8 @@ namespace Api
160165
{
161166
FReport::Log(FString(__FUNCTION__));
162167

163-
FString Authorization = FString::Printf(TEXT("Bearer %s"), *Credentials.GetAccessToken());
164-
FString Url = FString::Printf(TEXT("%s/public/namespaces/%s/users/%s/slots/%s/metadata"), *Settings.CloudStorageServerUrl, *Credentials.GetNamespace(), *Credentials.GetUserId(), *SlotId);
168+
FString Authorization = FString::Printf(TEXT("Bearer %s"), *CredentialsRef.GetAccessToken());
169+
FString Url = FString::Printf(TEXT("%s/public/namespaces/%s/users/%s/slots/%s/metadata"), *SettingsRef.CloudStorageServerUrl, *CredentialsRef.GetNamespace(), *CredentialsRef.GetUserId(), *SlotId);
165170
FString Verb = TEXT("PUT");
166171
FString Accept = TEXT("application/json");
167172
FString ContentType = TEXT("application/json");
@@ -188,8 +193,8 @@ namespace Api
188193
{
189194
FReport::Log(FString(__FUNCTION__));
190195

191-
FString Authorization = FString::Printf(TEXT("Bearer %s"), *Credentials.GetAccessToken());
192-
FString Url = FString::Printf(TEXT("%s/public/namespaces/%s/users/%s/slots/%s"), *Settings.CloudStorageServerUrl, *Credentials.GetNamespace(), *Credentials.GetUserId(), *SlotID);
196+
FString Authorization = FString::Printf(TEXT("Bearer %s"), *CredentialsRef.GetAccessToken());
197+
FString Url = FString::Printf(TEXT("%s/public/namespaces/%s/users/%s/slots/%s"), *SettingsRef.CloudStorageServerUrl, *CredentialsRef.GetNamespace(), *CredentialsRef.GetUserId(), *SlotID);
193198
FString Verb = TEXT("DELETE");
194199
FString ContentType = TEXT("application/json");
195200
FString Accept = TEXT("*/*");

0 commit comments

Comments
 (0)