Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_sdk_framework
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
Manos Chorianopoulos
2022-06-30 12:36:21 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6a78ad2a17648aef2121328b017b5dc6c0eecb29
6a78ad2a
1 parent
1194023a
fix constructCcmsUrl func
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
6a78ad2
...
...
@@ -1519,7 +1519,7 @@ public class swiftApi {
return
finalUrl
}
public
func
constructCcmsUrl
(
_
sessionId
:
String
,
_
campaign
:
LoyaltyContextualOfferModel
)
->
String
{
public
func
constructCcmsUrl
(
_
campaign
:
LoyaltyContextualOfferModel
)
->
String
{
for
item
in
GlobalVariables
.
campaigns
{
if
(
item
.
loyaltyCampaignId
==
campaign
.
_loyaltyCampaignId
)
{
print
(
"CCMS_PRESSED"
+
" "
+
campaign
.
_id
+
" "
+
campaign
.
_offerName
)
...
...
@@ -1535,7 +1535,7 @@ public class swiftApi {
+
"&refresh_token="
+
(
campaignInfo
?[
"refresh_token"
]
as!
String
)
+
"&client_id="
+
(
campaignInfo
?[
"client_id"
]
as!
String
)
+
"&client_secret="
+
(
campaignInfo
?[
"client_secret"
]
as!
String
)
+
"&Session_ID="
+
sessionId
//
(campaign._sessionId)
+
"&Session_ID="
+
(
campaign
.
_sessionId
)
+
"&businessService="
+
(
campaign
.
_businessService
)
+
"&offerName="
+
(
campaign
.
_offerName
)
+
"&productType="
+
(
campaign
.
_productType
)
...
...
Please
register
or
login
to post a comment