Uygulama Detayları

Aktif uygulamaya ait bilgileri getiren servistir.

GET https://api.zotlo.com/v1/team/application

Örnek İstek

Curl
Php
Swift
Java
Python
C#
1
curl --location --request GET 'https://api.zotlo.com/v1/team/application' \
2
--header 'AccessKey: ***' \
3
--header 'AccessSecret: ***' \
4
--header 'Content-Type: application/json' \
5
--header 'ApplicationId: *' \
6
--header 'Language: tr'
Copied!
1
$curl = curl_init();
2
3
curl_setopt_array($curl, array(
4
CURLOPT_URL => "https://api.zotlo.com/v1/team/application",
5
CURLOPT_RETURNTRANSFER => true,
6
CURLOPT_ENCODING => "",
7
CURLOPT_MAXREDIRS => 10,
8
CURLOPT_TIMEOUT => 0,
9
CURLOPT_FOLLOWLOCATION => true,
10
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
11
CURLOPT_CUSTOMREQUEST => "GET",
12
CURLOPT_HTTPHEADER => array(
13
"AccessKey: ***",
14
"AccessSecret: ***",
15
"Content-Type: application/json",
16
"ApplicationId: *",
17
"Language: tr"
18
),
19
));
20
21
$response = curl_exec($curl);
22
23
curl_close($curl);
24
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/application")!,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/application")
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/application"
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/application");
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-5f32a6fe5f4e6",
4
"httpStatus": 200
5
},
6
"result": {
7
"app": {
8
"name": "Zotlo",
9
"status": "1",
10
"platform": "web",
11
"createDate": "2020-05-13 07:06:03",
12
"webhookUrl": {
13
"subscriptionUpdate": "https://www.example.com/zotlo-webhook",
14
"transaction": "https://www.example.com/zotlo-webhook",
15
"refund": "https://www.example.com/zotlo-webhook"
16
}
17
}
18
}
19
}
Copied!
Last modified 2mo ago