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-11-07 15:25:19 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d49c24842ee9c128ef1dd518bd9d66e9cdf0606d
d49c2484
1 parent
a9741df2
fix initialize error
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
3 deletions
SwiftWarplyFramework/SwiftWarplyFramework/MyApi.m
SwiftWarplyFramework/SwiftWarplyFramework/Warply/Warply.m
SwiftWarplyFramework/SwiftWarplyFramework/MyApi.m
View file @
d49c248
...
...
@@ -289,11 +289,27 @@ NSString *VERIFY_URL = @"/partners/cosmote/verify";
-
(
NSDictionary
*
)
provideInfoForCampaign
{
NSMutableDictionary
*
info
=
[[
NSMutableDictionary
alloc
]
init
];
// info[@"web_id"] = [Warply sharedService].webId;
info
[
@"web_id"
]
=
[
WLKeychain
getStringForKey
:
@"NBWebID"
];
@try
{
info
[
@"app_uuid"
]
=
[
WLKeychain
getStringForKey
:
@"NBAPPUuid"
];
// info[@"api_key"] = self.warply.apiKey;
info
[
@"api_key"
]
=
[
WLKeychain
getStringForKey
:
@"NBAPIKey"
];
info
[
@"web_id"
]
=
[
WLKeychain
getStringForKey
:
@"NBWebID"
];
}
@catch
(
NSException
*
exception
)
{
NSUserDefaults
*
defaults
=
[
NSUserDefaults
standardUserDefaults
];
info
[
@"app_uuid"
]
=
[
defaults
stringForKey
:
@"NBAPPUuidUD"
];
info
[
@"api_key"
]
=
[
defaults
stringForKey
:
@"NBAPIKeyUD"
];
info
[
@"web_id"
]
=
[
defaults
stringForKey
:
@"NBWebIDUD"
];
}
@finally
{
// NSLog(@"Finally condition");
}
// info[@"web_id"] = [Warply sharedService].webId;
// info[@"web_id"] = [WLKeychain getStringForKey:@"NBWebID"];
// info[@"app_uuid"] = [WLKeychain getStringForKey:@"NBAPPUuid"];
// info[@"api_key"] = self.warply.apiKey;
// info[@"api_key"] = [WLKeychain getStringForKey:@"NBAPIKey"];
Warply
*
warplyInstance
=
[[
Warply
alloc
]
init
];
info
[
@"access_token"
]
=
[
warplyInstance
getAccessToken
];
info
[
@"refresh_token"
]
=
[
warplyInstance
getRefreshToken
];
...
...
SwiftWarplyFramework/SwiftWarplyFramework/Warply/Warply.m
View file @
d49c248
This diff is collapsed. Click to expand it.
Please
register
or
login
to post a comment