获取空间详情
curl --request GET \
--url https://api.aisa.one/apis/v1/twitter/spaces/detail \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/twitter/spaces/detail"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/twitter/spaces/detail', 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.aisa.one/apis/v1/twitter/spaces/detail",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.aisa.one/apis/v1/twitter/spaces/detail"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.aisa.one/apis/v1/twitter/spaces/detail")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/twitter/spaces/detail")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"title": "<string>",
"state": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"scheduled_start": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"media_key": "<string>",
"is_subscribed": true,
"settings": {
"conversation_controls": 123,
"disallow_join": true,
"is_employee_only": true,
"is_locked": true,
"is_muted": true,
"is_space_available_for_clipping": true,
"is_space_available_for_replay": true,
"no_incognito": true,
"narrow_cast_space_type": 123,
"max_guest_sessions": 123,
"max_admin_capacity": 123
},
"stats": {
"total_replay_watched": 123,
"total_live_listeners": 123,
"total_participants": 123
},
"creator": {
"id": "<string>",
"name": "<string>",
"userName": "<string>",
"location": "<string>",
"url": "<string>",
"description": "<string>",
"protected": true,
"isVerified": true,
"isBlueVerified": true,
"verifiedType": "<string>",
"followers": 123,
"following": 123,
"favouritesCount": 123,
"statusesCount": 123,
"mediaCount": 123,
"createdAt": "2023-11-07T05:31:56Z",
"coverPicture": "<string>",
"profilePicture": "<string>",
"canDm": true,
"affiliatesHighlightedLabel": {},
"isAutomated": true,
"automatedBy": "<string>"
}
},
"msg": "<string>"
}Spaces
获取空间详情
获取空间详情
GET
https://api.aisa.one/apis/v1
/
twitter
/
spaces
/
detail
获取空间详情
curl --request GET \
--url https://api.aisa.one/apis/v1/twitter/spaces/detail \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/twitter/spaces/detail"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/twitter/spaces/detail', 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.aisa.one/apis/v1/twitter/spaces/detail",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.aisa.one/apis/v1/twitter/spaces/detail"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.aisa.one/apis/v1/twitter/spaces/detail")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/twitter/spaces/detail")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"title": "<string>",
"state": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"scheduled_start": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"media_key": "<string>",
"is_subscribed": true,
"settings": {
"conversation_controls": 123,
"disallow_join": true,
"is_employee_only": true,
"is_locked": true,
"is_muted": true,
"is_space_available_for_clipping": true,
"is_space_available_for_replay": true,
"no_incognito": true,
"narrow_cast_space_type": 123,
"max_guest_sessions": 123,
"max_admin_capacity": 123
},
"stats": {
"total_replay_watched": 123,
"total_live_listeners": 123,
"total_participants": 123
},
"creator": {
"id": "<string>",
"name": "<string>",
"userName": "<string>",
"location": "<string>",
"url": "<string>",
"description": "<string>",
"protected": true,
"isVerified": true,
"isBlueVerified": true,
"verifiedType": "<string>",
"followers": 123,
"following": 123,
"favouritesCount": 123,
"statusesCount": 123,
"mediaCount": 123,
"createdAt": "2023-11-07T05:31:56Z",
"coverPicture": "<string>",
"profilePicture": "<string>",
"canDm": true,
"affiliatesHighlightedLabel": {},
"isAutomated": true,
"automatedBy": "<string>"
}
},
"msg": "<string>"
}⌘I