Uygulama Detayları

Aktif uygulamaya ait bilgileri getiren servistir.

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

Örnek İstek

Curl
Php
Swift
Java
Python
C#
curl --location --request GET 'https://api.zotlo.com/v1/team/application' \
--header 'AccessKey: ***' \
--header 'AccessSecret: ***' \
--header 'Content-Type: application/json' \
--header 'ApplicationId: *' \
--header 'Language: tr'
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.zotlo.com/v1/team/application",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => array(
"AccessKey: ***",
"AccessSecret: ***",
"Content-Type: application/json",
"ApplicationId: *",
"Language: tr"
),
));
$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/application")!,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/application")
.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/application"
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/application");
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-5f32a6fe5f4e6",
"httpStatus": 200
},
"result": {
"app": {
"name": "Zotlo",
"status": "1",
"platform": "web",
"createDate": "2020-05-13 07:06:03",
"webhookUrl": {
"subscriptionUpdate": "https://www.example.com/zotlo-webhook",
"transaction": "https://www.example.com/zotlo-webhook",
"refund": "https://www.example.com/zotlo-webhook"
}
}
}
}