Provider Listesi

Aktif takıma ait sağlayıcı listesinin dönüldüğü servistir.

GET https://api.zotlo.com/v1/team/provider
Bu serviste diğer servislerden farklı olarak, takıma ait tüm ödeme sağlayıcılarının listesi ve bilgileri dönülür.

Örnek İstek

Curl
Php
Swift
Java
Python
C#
curl --location --request GET 'https://api.zotlo.com/v1/team/package' \
--header 'AccessKey: ****' \
--header 'AccessSecret: ****' \
--header 'ApplicationId: *' \
--header 'Language: en'
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.zotlo.com/v1/team/provider",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 10,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => array(
"AccessKey: ***",
"AccessSecret: ***",
"ApplicationId: *",
"Language: en"
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
import Foundation
var semaphore = DispatchSemaphore (value: 0)
var request = URLRequest(url: URL(string: "https://api.zotlo.com/v1/team/provider")!,timeoutInterval: Double.infinity)
request.addValue("***", forHTTPHeaderField: "AccessKey")
request.addValue("***", forHTTPHeaderField: "AccessSecret")
request.addValue("*", forHTTPHeaderField: "ApplicationId")
request.addValue("en", forHTTPHeaderField: "Language")
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)!)
semaphore.signal()
}
task.resume()
semaphore.wait()
OkHttpClient client = new OkHttpClient().newBuilder().build();
Request request = new Request.Builder()
.url("https://api.zotlo.com/v1/team/provider")
.method("GET", null)
.addHeader("AccessKey", "***")
.addHeader("AccessSecret", "***")
.addHeader("ApplicationId", "*")
.addHeader("Language", "tr")
.build();
Response response = client.newCall(request).execute();
import requests
url = "https://api.zotlo.com/v1/team/provider"
payload = {}
headers = {
'AccessKey': '***',
'AccessSecret': '***',
'ApplicationId': '*',
'Language': 'en'
}
response = requests.request("GET", url, headers=headers, data = payload)
print(response.text.encode('utf8'))
var client = new RestClient("https://api.zotlo.com/v1/team/provider");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("AccessKey", "***");
request.AddHeader("AccessSecret", "***");
request.AddHeader("ApplicationId", "*");
request.AddHeader("Language", "en");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Başarılı Cevap

{
"meta": {
"requestId": "6d2989e84793-REQ-5f32a7a4caf75",
"httpStatus": 200
},
"result": {
"providers": [
{
"id": 3,
"name": "Zotlopay Pos",
"createDate": "2020-04-03 18:25:47",
"status": 1,
"paymentMode": "test",
"paymentType": "3d",
"system": {
"name": "Zotlo Pay"
}
}
]
}
}