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-10-12 15:07:42 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
29ff2dce4ba5a6586cdaa260c9810e1a9feab72a
29ff2dce
1 parent
390f6ede
set live header for getCosmoteUser
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
SwiftWarplyFramework/SwiftWarplyFramework/Warply/Warply.m
SwiftWarplyFramework/SwiftWarplyFramework/Warply/Warply.m
View file @
29ff2dc
...
...
@@ -4960,8 +4960,10 @@ CGFloat DistanceBetweenTwoPoints(CGPoint point1,CGPoint point2)
_httpClient
.
requestSerializer
=
[
AFJSONRequestSerializer
serializer
];
//Set HTTP Headers
// DEV: MWlTM0EyNjcxT2Q0a1B5QkIydEs1ZU5uRENhR0NWQjQ6MjI4MjA4ZTliMTQzNGQ2MmIxNGI3ZDAzYjM2ZjUwMzg=
// LIVE: MVBQNFhCQzhFYTJBaUdCNkJWZGFGUERlTTNLQ3kzMjU6YzViMzAyZDY5N2FiNGY3NzhiNThhMTg0YzBkZWRmNGU=
time_t
timestamp
=
(
time_t
)
[[
NSDate
date
]
timeIntervalSince1970
];
[
_httpClient
.
requestSerializer
setValue
:[
@"Basic "
stringByAppendingString
:
@"M
WlTM0EyNjcxT2Q0a1B5QkIydEs1ZU5uRENhR0NWQjQ6MjI4MjA4ZTliMTQzNGQ2MmIxNGI3ZDAzYjM2ZjUwMzg
="
]
forHTTPHeaderField
:
@"Authorization"
];
[
_httpClient
.
requestSerializer
setValue
:[
@"Basic "
stringByAppendingString
:
@"M
VBQNFhCQzhFYTJBaUdCNkJWZGFGUERlTTNLQ3kzMjU6YzViMzAyZDY5N2FiNGY3NzhiNThhMTg0YzBkZWRmNGU
="
]
forHTTPHeaderField
:
@"Authorization"
];
[
_httpClient
.
requestSerializer
setValue
:
_webId
forHTTPHeaderField
:
@"loyalty-web-id"
];
[
_httpClient
.
requestSerializer
setValue
:[
NSString
stringWithFormat
:
@"%lu"
,
timestamp
]
forHTTPHeaderField
:
@"loyalty-date"
];
[
_httpClient
.
requestSerializer
setValue
:[[
NSString
stringWithFormat
:
@"%@%lu"
,
_apiKey
,
timestamp
]
SHA256Sum
]
forHTTPHeaderField
:
@"loyalty-signature"
];
...
...
Please
register
or
login
to post a comment