KNYIntegrationService Class Reference
Inherits from | NSObject |
Declared in | KNYIntegrationService.h |
Instance Methods
initWithServiceName:
Init method Thows exception for invalid service name.
- (instancetype)initWithServiceName:(NSString *)serviceName
Parameters
- serviceName
integration service name
Return Value
returns an instance of KNYIntegrationService with the given serviceName
Discussion
Init method Thows exception for invalid service name.
Declared In
KNYIntegrationService.h
invokeOperationInBackgroundWithOperationName:headers:parameters:completion:
Fetch asynchronously and executes the given callback block.
- (NSOperation *)invokeOperationInBackgroundWithOperationName:(NSString *)operationName headers:(NSDictionary *)headers parameters:(NSDictionary *)parameters completion:(void ( ^ ) ( NSDictionary *resultData , NSError *error ))completion
Parameters
- headers
headers that needs to be sent in request header
- parameters
parameters to pass
- completion
The block to execute. The block should have the following argument signature: (NSDictionary resultData, NSError error)
- serviceId
service id
Return Value
Returns an NSOperation instance object.
Discussion
Fetch asynchronously and executes the given callback block.
Declared In
KNYIntegrationService.h
setIntegrationServiceEndPoint:serviceName:
Set endpoint url for given service name
- (void)setIntegrationServiceEndPoint:(NSString *)URLString serviceName:(NSString *)serviceName
Parameters
- URLString
end point URLString
- serviceName
serviceName
Discussion
Set endpoint url for given service name
Declared In
KNYIntegrationService.h