iOS
Using Swift
import Foundation
var request = URLRequest(url: URL(string: "https://api.ipoalerts.in/ipos?status=open")!,timeoutInterval: Double.infinity)
request.addValue("your_api_key_here", forHTTPHeaderField: "x-api-key")
request.httpMethod = "GET"
let task = URLSession.shared.dataTask(with: request) { data, response, error in
guard let data = data else {
print(String(describing: error))
return
}
print(String(data: data, encoding: .utf8)!)
}
task.resume()