KNYIntegrationService Class Reference
| Inherits from | NSObject |
| Declared in | KNYIntegrationService.h |
Instance Methods
initWithServiceName:
Init method Thows exception for invalid service name.
- (instancetype)initWithServiceName:(NSString *)serviceNameParameters
- 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.hinvokeOperationInBackgroundWithOperationName: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 ))completionParameters
- 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.hsetIntegrationServiceEndPoint:serviceName:
Set endpoint url for given service name
- (void)setIntegrationServiceEndPoint:(NSString *)URLString serviceName:(NSString *)serviceNameParameters
- URLString
end point URLString
- serviceName
serviceName
Discussion
Set endpoint url for given service name
Declared In
KNYIntegrationService.h