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-22 11:54:52 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1dcc1c1175cc76720e9ea8d9d15d2aa7ba91ae9a
1dcc1c11
1 parent
e42552d9
fix getCosmoteUser
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
SwiftWarplyFramework/SwiftWarplyFramework/Warply/Warply.m
SwiftWarplyFramework/SwiftWarplyFramework/Warply/Warply.m
View file @
1dcc1c1
...
...
@@ -1950,16 +1950,12 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
[
_db
executeUpdate
:
@"INSERT INTO requestVariables (id, client_id, client_secret, access_token, refresh_token) VALUES (1, ?, ?, ?, ?)"
,
clientId
,
clientSecret
,
accessToken
,
refreshToken
];
NSNumber
*
status
=
[
NSNumber
alloc
];
status
=
[
contextResponse
objectForKey
:
@"result"
];
NSString
*
result
=
@""
;
result
=
[
status
isEqual
:
@1
]
?
@"success"
:
@"error"
;
NSDictionary
*
successResponse
=
@{
@"result"
:
result
,
@"status"
:
status
};
NSDictionary
*
successResponse
=
@{
@"result"
:
@"success"
,
@"status"
:
@1
};
if
(
success
)
{
success
(
successResponse
);
}
NSLog
(
@"**************** WARPLY Response *****************"
);
NSLog
(
@"%@"
,
context
Response
);
NSLog
(
@"%@"
,
success
Response
);
}
failureBlock
:^
(
NSError
*
error
)
{
if
(
failure
)
{
failure
(
error
);
...
...
Please
register
or
login
to post a comment