محذوف (v2)
curl --request GET \
--url 'https://api.benzinga.com/api/v2.1/calendar-removed/?token='import requests
url = "https://api.benzinga.com/api/v2.1/calendar-removed/?token="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.benzinga.com/api/v2.1/calendar-removed/?token=', 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://api.benzinga.com/api/v2.1/calendar-removed/?token=",
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://api.benzinga.com/api/v2.1/calendar-removed/?token="
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://api.benzinga.com/api/v2.1/calendar-removed/?token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.benzinga.com/api/v2.1/calendar-removed/?token=")
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{
"removed": [
{
"id": "5b5d22b5be523300016fd411",
"type": "dividends",
"updated": 0
},
{
"id": "5c3dc573a8839f000125ef6b",
"type": "dividends",
"updated": 0
},
{
"id": "5c3de0ffa8839f000125efd4",
"type": "dividends",
"updated": 0
},
{
"id": "5c3e642da8839f000125f167",
"type": "dividends",
"updated": 0
},
{
"id": "5c3d9249a8839f000125ef61",
"type": "dividends",
"updated": 0
}
]
}
{
"ok": false,
"errors": [
{
"code": "auth_failed",
"id": "unauthorized",
"value": "Invalid or missing authentication token"
}
]
}
{
"ok": false,
"errors": [
{
"code": "no_data_found",
"id": "not_found",
"value": "No data found for the specified parameters"
}
]
}
{
"ok": false,
"errors": [
{
"code": "internal_server_error",
"id": "server_error",
"value": "An unexpected error occurred while processing your request"
}
]
}
캘린더
삭제된 항목
GET
/
api
/
v2.1
/
calendar-removed
/
محذوف (v2)
curl --request GET \
--url 'https://api.benzinga.com/api/v2.1/calendar-removed/?token='import requests
url = "https://api.benzinga.com/api/v2.1/calendar-removed/?token="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.benzinga.com/api/v2.1/calendar-removed/?token=', 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://api.benzinga.com/api/v2.1/calendar-removed/?token=",
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://api.benzinga.com/api/v2.1/calendar-removed/?token="
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://api.benzinga.com/api/v2.1/calendar-removed/?token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.benzinga.com/api/v2.1/calendar-removed/?token=")
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{
"removed": [
{
"id": "5b5d22b5be523300016fd411",
"type": "dividends",
"updated": 0
},
{
"id": "5c3dc573a8839f000125ef6b",
"type": "dividends",
"updated": 0
},
{
"id": "5c3de0ffa8839f000125efd4",
"type": "dividends",
"updated": 0
},
{
"id": "5c3e642da8839f000125f167",
"type": "dividends",
"updated": 0
},
{
"id": "5c3d9249a8839f000125ef61",
"type": "dividends",
"updated": 0
}
]
}
{
"ok": false,
"errors": [
{
"code": "auth_failed",
"id": "unauthorized",
"value": "Invalid or missing authentication token"
}
]
}
{
"ok": false,
"errors": [
{
"code": "no_data_found",
"id": "not_found",
"value": "No data found for the specified parameters"
}
]
}
{
"ok": false,
"errors": [
{
"code": "internal_server_error",
"id": "server_error",
"value": "An unexpected error occurred while processing your request"
}
]
}
{
"removed": [
{
"id": "5b5d22b5be523300016fd411",
"type": "dividends",
"updated": 0
},
{
"id": "5c3dc573a8839f000125ef6b",
"type": "dividends",
"updated": 0
},
{
"id": "5c3de0ffa8839f000125efd4",
"type": "dividends",
"updated": 0
},
{
"id": "5c3e642da8839f000125f167",
"type": "dividends",
"updated": 0
},
{
"id": "5c3d9249a8839f000125ef61",
"type": "dividends",
"updated": 0
}
]
}
{
"ok": false,
"errors": [
{
"code": "auth_failed",
"id": "unauthorized",
"value": "Invalid or missing authentication token"
}
]
}
{
"ok": false,
"errors": [
{
"code": "no_data_found",
"id": "not_found",
"value": "No data found for the specified parameters"
}
]
}
{
"ok": false,
"errors": [
{
"code": "internal_server_error",
"id": "server_error",
"value": "An unexpected error occurred while processing your request"
}
]
}
인증
쿼리 매개변수
إزاحة الصفحة. لأسباب متعلقة بتحسين الأداء واعتبارات تقنية، تقتصر إزاحات الصفحات على النطاق من 0 إلى 100000. يمكنك تقييد نتائج الاستعلام باستخدام معلمات أخرى مثل التاريخ. القيمة الافتراضية هي 0
عدد النتائج المُعادة. الحد الأقصى 1000
type
사용 가능한 옵션:
ratings, earnings, dividends, splits, ipos, offerings, economics, guidance, ma, conference calls آخر طابع زمني Unix لتحديث السجلات (UTC). سيؤدي ذلك إلى فرض ترتيب فرز بحيث تكون القيم أكبر من أو تساوي الطابع الزمني المحدَّد
응답
محذوف
Show child attributes
Show child attributes
⌘I