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#
1
curl --location --request GET 'https://api.zotlo.com/v1/team/package' \
2
--header 'AccessKey: ****' \
3
--header 'AccessSecret: ****' \
4
--header 'ApplicationId: *' \
5
--header 'Language: en'
Copied!
1
$curl = curl_init();
2
curl_setopt_array($curl, array(
3
CURLOPT_URL => "https://api.zotlo.com/v1/team/provider",
4
CURLOPT_RETURNTRANSFER => true,
5
CURLOPT_TIMEOUT => 10,
6
CURLOPT_FOLLOWLOCATION => true,
7
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
8
CURLOPT_CUSTOMREQUEST => "GET",
9
CURLOPT_HTTPHEADER => array(
10
"AccessKey: ***",
11
"AccessSecret: ***",
12
"ApplicationId: *",
13
"Language: en"
14
),
15
));
16
17
$response = curl_exec($curl);
18
19
curl_close($curl);
20
echo $response;
Copied!
1
import Foundation
2
3
var semaphore = DispatchSemaphore (value: 0)
4
5
var request = URLRequest(url: URL(string: "https://api.zotlo.com/v1/team/provider")!,timeoutInterval: Double.infinity)
6
request.addValue("***", forHTTPHeaderField: "AccessKey")
7
request.addValue("***", forHTTPHeaderField: "AccessSecret")
8
request.addValue("*", forHTTPHeaderField: "ApplicationId")
9
request.addValue("en", forHTTPHeaderField: "Language")
10
11
request.httpMethod = "GET"
12
13
let task = URLSession.shared.dataTask(with: request) { data, response, error in
14
guard let data = data else {
15
print(String(describing: error))
16
return
17
}
18
print(String(data: data, encoding: .utf8)!)
19
semaphore.signal()
20
}
21
22
task.resume()
23
semaphore.wait()
Copied!
1
OkHttpClient client = new OkHttpClient().newBuilder().build();
2
Request request = new Request.Builder()
3
.url("https://api.zotlo.com/v1/team/provider")
4
.method("GET", null)
5
.addHeader("AccessKey", "***")
6
.addHeader("AccessSecret", "***")
7
.addHeader("ApplicationId", "*")
8
.addHeader("Language", "tr")
9
.build();
10
Response response = client.newCall(request).execute();
Copied!
1
import requests
2
3
url = "https://api.zotlo.com/v1/team/provider"
4
5
payload = {}
6
headers = {
7
'AccessKey': '***',
8
'AccessSecret': '***',
9
'ApplicationId': '*',
10
'Language': 'en'
11
}
12
13
response = requests.request("GET", url, headers=headers, data = payload)
14
15
print(response.text.encode('utf8'))
Copied!
1
var client = new RestClient("https://api.zotlo.com/v1/team/provider");
2
client.Timeout = -1;
3
var request = new RestRequest(Method.GET);
4
request.AddHeader("AccessKey", "***");
5
request.AddHeader("AccessSecret", "***");
6
request.AddHeader("ApplicationId", "*");
7
request.AddHeader("Language", "en");
8
IRestResponse response = client.Execute(request);
9
Console.WriteLine(response.Content);
Copied!

Başarılı Cevap

1
{
2
"meta": {
3
"requestId": "6d2989e84793-REQ-5f32a7a4caf75",
4
"httpStatus": 200
5
},
6
"result": {
7
"providers": [
8
{
9
"id": 3,
10
"name": "Zotlopay Pos",
11
"createDate": "2020-04-03 18:25:47",
12
"status": 1,
13
"paymentMode": "test",
14
"paymentType": "3d",
15
"system": {
16
"name": "Zotlo Pay"
17
}
18
}
19
]
20
}
21
}
Copied!
Last modified 2mo ago