This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Methods to be inside the network wrapper service | |
private class func _prepareRequest (_ strUrl: String, params: JSON?, method: String = Methods.GET) -> URLRequest { | |
var signature = "" | |
let url = URL(string: Config.API_URL + strUrl)! | |
var urlRequest = URLRequest(url: url) | |
urlRequest.httpMethod = method | |
urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type") | |
urlRequest.setValue(Config.APPID, forHTTPHeaderField: CustomHeaders.APP_ID) |