Authorization
curl --request GET \
--url https://api.zbdpay.com/v1/oauth2/authorizeimport requests
url = "https://api.zbdpay.com/v1/oauth2/authorize"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.zbdpay.com/v1/oauth2/authorize', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.zbdpay.com/v1/oauth2/authorize",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.zbdpay.com/v1/oauth2/authorize"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.zbdpay.com/v1/oauth2/authorize")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zbdpay.com/v1/oauth2/authorize")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyAPI Reference
Authorization
Create an authorization URL for ZBD Login.
GET
/
v1
/
oauth2
/
authorize
Authorization
curl --request GET \
--url https://api.zbdpay.com/v1/oauth2/authorizeimport requests
url = "https://api.zbdpay.com/v1/oauth2/authorize"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.zbdpay.com/v1/oauth2/authorize', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.zbdpay.com/v1/oauth2/authorize",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.zbdpay.com/v1/oauth2/authorize"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.zbdpay.com/v1/oauth2/authorize")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zbdpay.com/v1/oauth2/authorize")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyDescription
In order to properly redirect users to the ZBD Login portal, you must open a browser session containing the builtauthorization URL as the destination address.
This API endpoint helps you create that authorization URL.
- Read here for more details on how to setup ZBD Login (OAuth2) with your platform.
Configuration
Query Parameters
string
required
string
required
string
required
string
required
string
required
string
required
Was this page helpful?