User Tools

Site Tools


developers:peig-api:ios

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
developers:peig-api:ios [2018/07/10 13:22]
dskrbek [Response ApiResult]
developers:peig-api:ios [2019/08/01 10:03]
tjotov removed
Line 1: Line 1:
 ====== iOS implementation of PEIG API ====== ====== iOS implementation of PEIG API ======
- 
-//See [[https://github.com/aducid-dev/peigapi-ios/|DemoBank]] example// 
  
 ===== Description ===== ===== Description =====
Line 104: Line 102:
 Custom application errors, authentication failed! Custom application errors, authentication failed!
  
-  * <font inherit/inherit;;black;;inherit>result</font><font inherit/inherit;;rgb(38, 71, 75);;inherit>.exception</font>contains ADUCID exception, there are possible states: +  * <code objc>result.exception</code> contains ADUCID exception, there are possible states: 
-      * <font inherit/inherit;;black;;inherit>[result notAcceptedByUser]</font>user rejected +      * <code objc>[result notAcceptedByUser]</code> user rejected 
-      * <font inherit/inherit;;black;;inherit>[result isFactorAbsent]</font>user doesn’t have personal factor (and server requires it) +      * <code objc>[result isFactorAbsent]</code> user doesn’t have personal factor (and server requires it) 
-  * <font inherit/inherit;;black;;inherit>result.data</font>contains error Message / reason +  * <code objc>result.data</code> contains error message / reason 
-  * <font inherit/inherit;;black;;inherit>[</font><font inherit/inherit;;black;;inherit>result</font><font inherit/inherit;;rgb(38, 71, 75);;inherit>doRedirect</font><font inherit/inherit;;black;;inherit>], result.</font><font inherit/inherit;;rgb(63, 110, 116);;inherit>redirect</font>contains page that could be opened using browser / contains additional content to download / display to the user.+  * <code objc>[result doRedirect], result.redirect</code> contains page that could be opened using browser / contains additional content to download / display to the user.
  
-<font 11pt/inherit;;inherit;;inherit>See ApiResult class for all details.</font>+See ApiResult class for all details.
  
 ===== Handle result from PEIG ===== ===== Handle result from PEIG =====
Line 128: Line 126:
 </code> </code>
  
-Method handleOpenURL is defined in protocol class <font inherit/inherit;;black;;inherit>UIApplicationDelegate.</font>+Method handleOpenURL is defined in protocol class **UIApplicationDelegate**.
  
 ===== Retrieving data when it is authenticated ===== ===== Retrieving data when it is authenticated =====
Line 138: Line 136:
 <code objc> <code objc>
 - (void) getAducidOperation:(NSString*)url withParameters:(id)params withDelegate:(id<LibServiceDelegate>)delegate withDataSourceCompletionHandler:(void (^) (ApiResult*))successDataHandler withDataSourceErrorHandler:(void (^)(NSString*))failureDataHandler; - (void) getAducidOperation:(NSString*)url withParameters:(id)params withDelegate:(id<LibServiceDelegate>)delegate withDataSourceCompletionHandler:(void (^) (ApiResult*))successDataHandler withDataSourceErrorHandler:(void (^)(NSString*))failureDataHandler;
 +
 - (void) postAducidOperation:(NSString*)url withParameters:(id)params withDelegate:(id<LibServiceDelegate>)delegate withDataSourceCompletionHandler:(void (^) (ApiResult*))successDataHandler withDataSourceErrorHandler:(void (^)(NSString*))failureDataHandler; - (void) postAducidOperation:(NSString*)url withParameters:(id)params withDelegate:(id<LibServiceDelegate>)delegate withDataSourceCompletionHandler:(void (^) (ApiResult*))successDataHandler withDataSourceErrorHandler:(void (^)(NSString*))failureDataHandler;
 </code> </code>