Authentication
curl --request GET \
--url https://apitest.tunamatbaacilik.com.tr/loginimport requests
url = "https://apitest.tunamatbaacilik.com.tr/login"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://apitest.tunamatbaacilik.com.tr/login', 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://apitest.tunamatbaacilik.com.tr/login",
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://apitest.tunamatbaacilik.com.tr/login"
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://apitest.tunamatbaacilik.com.tr/login")
.asString();require 'uri'
require 'net/http'
url = URI("https://apitest.tunamatbaacilik.com.tr/login")
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_body"API_OK^f5c46f793e07c46fd49884b107e9bb2462fcaeabebc63a4e7923c9edb059e673""API_ERROR^Kullanıcı adı ve parola belirtmelisiniz.""API_ERROR^Kullanıcı adı veya parola hatalı""API_ERROR^Geçersiz istek"İstekler
Authentication
Login olarak 60 dakika geçerli token alabilirsiniz.
Test için kullanabileceğiniz kullanıcı bilgileri:
- Kullanıcı Adı: sunucupark
- Şifre: sunucupark
GET
/
login
Authentication
curl --request GET \
--url https://apitest.tunamatbaacilik.com.tr/loginimport requests
url = "https://apitest.tunamatbaacilik.com.tr/login"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://apitest.tunamatbaacilik.com.tr/login', 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://apitest.tunamatbaacilik.com.tr/login",
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://apitest.tunamatbaacilik.com.tr/login"
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://apitest.tunamatbaacilik.com.tr/login")
.asString();require 'uri'
require 'net/http'
url = URI("https://apitest.tunamatbaacilik.com.tr/login")
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_body"API_OK^f5c46f793e07c46fd49884b107e9bb2462fcaeabebc63a4e7923c9edb059e673""API_ERROR^Kullanıcı adı ve parola belirtmelisiniz.""API_ERROR^Kullanıcı adı veya parola hatalı""API_ERROR^Geçersiz istek"⌘I
