production
development
https://apigateway.bankalfalah.com/bankalfalah/sb
Paths
/OTPGenerate
get /OTPGenerate
clientIdHeader
X-IBM-Client-Id
(apiKey located in header)
ReferenceNumber
Required in query
string
00017458968523
Mobile
Required in query
string
0333XXXXXXX
Email
Optional in query
string
abc@bankalfalah.com
Accept
Optional in header
string
application/json
200
200 OK
Example Request
curl --request GET \
--url 'https://apigateway.bankalfalah.com/bankalfalah/sb/otp-generate/OTPGenerate?ReferenceNumber=REPLACE_THIS_VALUE&Mobile=REPLACE_THIS_VALUE&Email=REPLACE_THIS_VALUE' \
--header 'accept: application/json' \
--header 'x-ibm-client-id: REPLACE_THIS_KEY'
require 'uri'
require 'openssl'
require 'net/http'
url = URI("https://apigateway.bankalfalah.com/bankalfalah/sb/otp-generate/OTPGenerate?ReferenceNumber=REPLACE_THIS_VALUE&Mobile=REPLACE_THIS_VALUE&Email=REPLACE_THIS_VALUE")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
request = Net::HTTP::Get.new(url)
request["x-ibm-client-id"] = 'REPLACE_THIS_KEY'
request["accept"] = 'application/json'
response = http.request(request)
puts response.read_body
import http.client
conn = http.client.HTTPSConnection("apigateway.bankalfalah.com")
headers = {
'x-ibm-client-id': "REPLACE_THIS_KEY",
'accept': "application/json"
}
conn.request("GET", "/bankalfalah/sb/otp-generate/OTPGenerate?ReferenceNumber=REPLACE_THIS_VALUE&Mobile=REPLACE_THIS_VALUE&Email=REPLACE_THIS_VALUE", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://apigateway.bankalfalah.com/bankalfalah/sb/otp-generate/OTPGenerate?ReferenceNumber=REPLACE_THIS_VALUE&Mobile=REPLACE_THIS_VALUE&Email=REPLACE_THIS_VALUE",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => array(
"accept: application/json",
"x-ibm-client-id: REPLACE_THIS_KEY"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
// OkHttpClient from http://square.github.io/okhttp/
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://apigateway.bankalfalah.com/bankalfalah/sb/otp-generate/OTPGenerate?ReferenceNumber=REPLACE_THIS_VALUE&Mobile=REPLACE_THIS_VALUE&Email=REPLACE_THIS_VALUE")
.get()
.addHeader("x-ibm-client-id", "REPLACE_THIS_KEY")
.addHeader("accept", "application/json")
.build();
Response response = client.newCall(request).execute();
// Install request by running "npm install --save request"
var request = require("request");
var options = { method: 'GET',
url: 'https://apigateway.bankalfalah.com/bankalfalah/sb/otp-generate/OTPGenerate',
qs:
{ ReferenceNumber: 'REPLACE_THIS_VALUE',
Mobile: 'REPLACE_THIS_VALUE',
Email: 'REPLACE_THIS_VALUE' },
headers:
{ accept: 'application/json',
'x-ibm-client-id': 'REPLACE_THIS_KEY' } };
request(options, function (error, response, body) {
if (error) return console.error('Failed: %s', error.message);
console.log('Success: ', body);
});
import Foundation
let headers = [
"x-ibm-client-id": "REPLACE_THIS_KEY",
"accept": "application/json"
]
var request = NSMutableURLRequest(URL: NSURL(string: "https://apigateway.bankalfalah.com/bankalfalah/sb/otp-generate/OTPGenerate?ReferenceNumber=REPLACE_THIS_VALUE&Mobile=REPLACE_THIS_VALUE&Email=REPLACE_THIS_VALUE")!,
cachePolicy: .UseProtocolCachePolicy,
timeoutInterval: 10.0)
request.HTTPMethod = "GET"
request.allHTTPHeaderFields = headers
let session = NSURLSession.sharedSession()
let dataTask = session.dataTaskWithRequest(request, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error)
} else {
let httpResponse = response as? NSHTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "https://apigateway.bankalfalah.com/bankalfalah/sb/otp-generate/OTPGenerate?ReferenceNumber=REPLACE_THIS_VALUE&Mobile=REPLACE_THIS_VALUE&Email=REPLACE_THIS_VALUE");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "accept: application/json");
headers = curl_slist_append(headers, "x-ibm-client-id: REPLACE_THIS_KEY");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
var client = new RestClient("https://apigateway.bankalfalah.com/bankalfalah/sb/otp-generate/OTPGenerate?ReferenceNumber=REPLACE_THIS_VALUE&Mobile=REPLACE_THIS_VALUE&Email=REPLACE_THIS_VALUE");
var request = new RestRequest(Method.GET);
request.AddHeader("accept", "application/json");
request.AddHeader("x-ibm-client-id", "REPLACE_THIS_KEY");
IRestResponse response = client.Execute(request);
Example Response
GET https://apigateway.bankalfalah.com/bankalfalah/sb/otp-generate/OTPGenerate
Try this operation
No response. This is a mixed content call. It is not possible to test HTTP APIs from an HTTPS secured Portal site and vice versa.
No response. This is a cross-origin call. Make sure the server accepts requests from this portal. Or if using self-signed SSL certificates then paste the URL above into your browser to accept the certificate before trying again (On Internet Explorer it must be the same browser tab.).