Fırsat Bilgisi Getir
Fırsat Bilgisi Getir, Evobulut ön muhasebe / ERP yazılımının Fırsat modülüne ait bir REST API servisidir. POST yöntemiyle https://ws.evobulut.com/api/Firsat/base adresine JSON gönderilerek çağrılır; kimlik doğrulama için Login servisinden alınan Token UID değeri gereklidir.
Açıklama
| cmd | İlgili komut |
| UID | KULLANICI_UID |
| a_id | Kayıt Anahtar ID |
Header Bilgileri
| X-ClientId | Login anında alınan kullanıcı Token UID bilgisi |
İstek Gövdesi (JSON)
{
"cmd": "sql",
"UID": "KULLANICI_UID",
"a_id": "1366"
} Kod Örnekleri
curl -X POST "https://ws.evobulut.com/api/Firsat/base" \
-H "Content-Type: application/json" \
-d '{
"cmd": "sql",
"UID": "KULLANICI_UID",
"a_id": "1366"
}'const response = await fetch("https://ws.evobulut.com/api/Firsat/base", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"cmd": "sql",
"UID": "KULLANICI_UID",
"a_id": "1366"
})
});
const veri = await response.json();
console.log(veri);using System.Text;
using System.Text.Json;
using var client = new HttpClient();
var json = """
{
"cmd": "sql",
"UID": "KULLANICI_UID",
"a_id": "1366"
}
""";
var content = new StringContent(json, Encoding.UTF8, "application/json");
var response = await client.PostAsync("https://ws.evobulut.com/api/Firsat/base", content);
var veri = await response.Content.ReadAsStringAsync();
Console.WriteLine(veri);import requests
url = "https://ws.evobulut.com/api/Firsat/base"
payload = {
"cmd": "sql",
"UID": "KULLANICI_UID",
"a_id": "1366"
}
response = requests.post(url, json=payload)
print(response.json())<?php
$url = "https://ws.evobulut.com/api/Firsat/base";
$payload = '{
"cmd": "sql",
"UID": "KULLANICI_UID",
"a_id": "1366"
}';
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Content-Type: application/json"]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;import java.net.URI;
import java.net.http.*;
HttpClient client = HttpClient.newHttpClient();
String json = """
{
"cmd": "sql",
"UID": "KULLANICI_UID",
"a_id": "1366"
}
""";
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://ws.evobulut.com/api/Firsat/base"))
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString(json))
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());import 'dart:convert';
import 'package:http/http.dart' as http;
final response = await http.post(
Uri.parse('https://ws.evobulut.com/api/Firsat/base'),
headers: {'Content-Type': 'application/json'},
body: jsonEncode({
"cmd": "sql",
"UID": "KULLANICI_UID",
"a_id": "1366"
}),
);
print(jsonDecode(response.body)); Başarılı Yanıt
200 OK
{
"status": "OK",
"veri": {
"Ana": [
{
"Satir": "0",
"a_id": "1366",
"a_adi": "Api Teklif Olustur Test",
"Aciklama": "Test Deneme Aciklama",
"a_musteri_id": "167708",
"a_son_tar": "26.05.2023 00:00:00",
"a_tarih": "12.04.2023 00:00:00",
"a_firsat_drm": "4",
"a_tutar": "1500",
"a_doviz_id": "0",
"Dov_Kod": "TL",
"Dov_Adi": "Turk Lirasi",
"Dov_Sembol": "TL",
"a_metrekare": "0",
"a_olasilik": "100",
"a_kaynak": "16",
"a_ulke_id": "1",
"a_sehir_id": "26",
"a_ilce_id": "804",
"a_ilce_adi": "Odunpazari",
"a_udf": "127^RADYO|128^645|1351^hamdiogullari as",
"a_udf_grp": "79,1248",
"a_cuser": "27921",
"a_cdate": "12.04.2023 14:57:00",
"a_muser": "35401",
"a_mdate": "17.07.2023 11:58:00",
"a_enlem_lat": "0",
"a_boylam_lon": "0",
"a_son_akt": "",
"a_son_gortar": "",
"a_tel": "",
"MUS_TIP": "1",
"MUS_EPOSTA": "[email protected]",
"MUSERNAME": "Sinem Demircan",
"CUSERNAME": "Ali ISIK",
"MUS_ADI": " Test Ali",
"KYNK_ADI": "Aysenur",
"ULKE": "Turkiye",
"SEHIR": "Eskisehir",
"FRST_DRM_ADI": "Kazanildi",
"a_adres": "Osmangazi Teknopark",
"a_kznma_sbp": "",
"a_kybtme_id": "0",
"KYBTME_ADI": "",
"a_kybtme_rakip_id": "0",
"RAKIP": "",
"a_kybtme_marka_id": "0",
"MARKA": "",
"IPT_ADI": "",
"a_kybtme_sbp": "",
"a_kybtme_tar": "",
"a_iptal_id": "0",
"a_iptal_not": "",
"a_saat": "01.01.1900 14:55:00"
}
],
"Teklif": [
{
"a_id": "11385",
"a_adi": "Api Teklif Olustur Test - 7",
"a_tarih": "14.08.2023 00:00:00",
"a_dov_tut": "0",
"a_kod": "TL",
"a_firsat_id": "1366"
},
{
"a_id": "11386",
"a_adi": "Api Teklif Olustur Test - 8",
"a_tarih": "14.08.2023 00:00:00",
"a_dov_tut": "0",
"a_kod": "TL",
"a_firsat_id": "1366"
},
{
"a_id": "11387",
"a_adi": "Api Teklif Olustur Test - 9",
"a_tarih": "14.08.2023 00:00:00",
"a_dov_tut": "0",
"a_kod": "TL",
"a_firsat_id": "1366"
},
{
"a_id": "10292",
"a_adi": "Api Teklif Olustur Test - 1",
"a_tarih": "12.04.2023 00:00:00",
"a_dov_tut": "0",
"a_kod": "TL",
"a_firsat_id": "1366"
},
{
"a_id": "10293",
"a_adi": "Api Teklif Olustur Test - 2",
"a_tarih": "12.04.2023 00:00:00",
"a_dov_tut": "0",
"a_kod": "TL",
"a_firsat_id": "1366"
},
{
"a_id": "10294",
"a_adi": "Api Teklif Olustur Test - 3",
"a_tarih": "12.04.2023 00:00:00",
"a_dov_tut": "0",
"a_kod": "TL",
"a_firsat_id": "1366"
},
{
"a_id": "10298",
"a_adi": "Api Teklif Olustur Test - 4",
"a_tarih": "12.04.2023 00:00:00",
"a_dov_tut": "0",
"a_kod": "TL",
"a_firsat_id": "1366"
},
{
"a_id": "10299",
"a_adi": "Api Teklif Olustur Test - 5",
"a_tarih": "12.04.2023 00:00:00",
"a_dov_tut": "17.7",
"a_kod": "TL",
"a_firsat_id": "1366"
},
{
"a_id": "10300",
"a_adi": "Api Teklif Olustur Test - 6",
"a_tarih": "12.04.2023 00:00:00",
"a_dov_tut": "0",
"a_kod": "TL",
"a_firsat_id": "1366"
}
]
}
}