7 * 24
多渠道服务支持
import requests
headers = {
'Authorization': 'Bearer YOUR_API_TOKEN'
}
params = {
'catId': 25590,
'channel': 'INTERNATIONAL',
'format': 'TLE'
}
response = requests.get('https://spacemapper.cn/cgi/orbital/aoe/list',
headers=headers, params=params)
print(response.text)
curl -H "Authorization: Bearer YOUR_API_TOKEN" "https://spacemapper.cn/cgi/orbital/aoe/list?catId=25590&channel=INTERNATIONAL&format=TLE"
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
public class Main {
public static void main(String[] args) {
try {
String url = "https://spacemapper.cn/cgi/orbital/aoe/list?catId=25590&channel=INTERNATIONAL&format=TLE";
URL obj = new URL(url);
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
con.setRequestProperty("Authorization", "Bearer YOUR_API_TOKEN");
BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
} catch (Exception e) {
e.printStackTrace();
}
}
}
<php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://spacemapper.cn/cgi/orbital/aoe/list?catId=25590&channel=INTERNATIONAL&format=TLE");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Authorization: Bearer YOUR_API_TOKEN"));
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
const axios = require('axios');
axios.get('https://spacemapper.cn/cgi/orbital/aoe/list', {
headers: {
'Authorization': 'Bearer YOUR_API_TOKEN'
},
params: {
catId: 25590,
channel: 'INTERNATIONAL',
format:TLE,
}
}).then(response => {
console.log(response.data);
}).catch(error => {
console.error(error);
});
using System;
using System.Net.Http;
using System.Threading.Tasks;
class Program{
static async Task Main(string[] args){
using (HttpClient client = new HttpClient()){
client.DefaultRequestHeaders.Add("Authorization", "Bearer YOUR_API_TOKEN");
string url = "https://spacemapper.cn/cgi/orbital/aoe/list?catId=25590&channel=INTERNATIONAL&format=TLE";
HttpResponseMessage response = await client.GetAsync(url);
string responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);
}
}
}
#include <iostream>
#include <string>
#include <curl/curl.h>
size_t WriteCallback(void* contents, size_t size, size_t nmemb, void* userp) {
((std::string*)userp)->append((char*)contents, size * nmemb);
return size * nmemb;
}
int main() {
CURL* curl;
CURLcode res;
std::string readBuffer;
curl_global_init(CURL_GLOBAL_DEFAULT);
curl = curl_easy_init();
if (curl) {
// 构造URL
std::string url = "https://spacemapper.cn/cgi/orbital/aoe/list?catId=25590&channel=INTERNATIONAL&format=TLE";
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
// 设置HTTP头
struct curl_slist *headers = nullptr;
headers = curl_slist_append(headers, "Authorization: Bearer YOUR_API_TOKEN");
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
// 设置写回调和数据
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteCallback);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &readBuffer);
// 执行请求
res = curl_easy_perform(curl);
// 清理HTTP头链表
curl_slist_free_all(headers);
// 错误处理
if (res != CURLE_OK) {
std::cerr << "curl_easy_perform() failed: " << curl_easy_strerror(res) << std::endl;
} else {
std::cout << readBuffer << std::endl;
}
curl_easy_cleanup(curl);
}
curl_global_cleanup();
return 0;
}
import requests
headers = {
'Authorization': 'Bearer YOUR_API_TOKEN'
}
params = {
'catId': 25590,
'channel': 'INTERNATIONAL',
'format': 'JSON'
}
response = requests.get('https://spacemapper.cn/cgi/orbital/aoe/list',
headers=headers, params=params)
print(response.text)
curl -H "Authorization: Bearer YOUR_API_TOKEN" "https://spacemapper.cn/cgi/orbital/aoe/list?catId=25590&channel=INTERNATIONAL&format=JSON"
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
public class Main {
public static void main(String[] args) {
try {
String url = "https://spacemapper.cn/cgi/orbital/aoe/list?catId=25590&channel=INTERNATIONAL&format=JSON";
URL obj = new URL(url);
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
con.setRequestProperty("Authorization", "Bearer YOUR_API_TOKEN");
BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
} catch (Exception e) {
e.printStackTrace();
}
}
}
<php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://spacemapper.cn/cgi/orbital/aoe/list?catId=25590&channel=INTERNATIONAL&format=JSON");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Authorization: Bearer YOUR_API_TOKEN"));
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
const axios = require('axios');
axios.get('https://spacemapper.cn/cgi/orbital/aoe/list', {
headers: {
'Authorization': 'Bearer YOUR_API_TOKEN'
},
params: {
catId: 25590,
channel: 'INTERNATIONAL',
format:JSON,
}
}).then(response => {
console.log(response.data);
}).catch(error => {
console.error(error);
});
using System;
using System.Net.Http;
using System.Threading.Tasks;
class Program{
static async Task Main(string[] args){
using (HttpClient client = new HttpClient()){
client.DefaultRequestHeaders.Add("Authorization", "Bearer YOUR_API_TOKEN");
string url = "https://spacemapper.cn/cgi/orbital/aoe/list?catId=25590&channel=INTERNATIONAL&format=JSON";
HttpResponseMessage response = await client.GetAsync(url);
string responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);
}
}
}
#include <iostream>
#include <string>
#include <curl/curl.h>
size_t WriteCallback(void* contents, size_t size, size_t nmemb, void* userp) {
((std::string*)userp)->append((char*)contents, size * nmemb);
return size * nmemb;
}
int main() {
CURL* curl;
CURLcode res;
std::string readBuffer;
curl_global_init(CURL_GLOBAL_DEFAULT);
curl = curl_easy_init();
if (curl) {
// 构造URL
std::string url = "https://spacemapper.cn/cgi/orbital/aoe/list?catId=25590&channel=INTERNATIONAL&format=JSON";
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
// 设置HTTP头
struct curl_slist *headers = nullptr;
headers = curl_slist_append(headers, "Authorization: Bearer YOUR_API_TOKEN");
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
// 设置写回调和数据
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteCallback);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &readBuffer);
// 执行请求
res = curl_easy_perform(curl);
// 清理HTTP头链表
curl_slist_free_all(headers);
// 错误处理
if (res != CURLE_OK) {
std::cerr << "curl_easy_perform() failed: " << curl_easy_strerror(res) << std::endl;
} else {
std::cout << readBuffer << std::endl;
}
curl_easy_cleanup(curl);
}
curl_global_cleanup();
return 0;
}
import requests
headers = {
'Authorization': 'Bearer YOUR_API_TOKEN'
}
params = {
'catId': 25590,
'channel': 'INTERNATIONAL',
'format': 'JSON'
}
response = requests.get('https://spacemapper.cn/cgi/orbital/aoe/list',
headers=headers, params=params)
print(response.text)
curl -H "Authorization: Bearer YOUR_API_TOKEN" "https://spacemapper.cn/cgi/orbital/aoe/list?catId=25590&channel=INTERNATIONAL&format=JSON"
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
public class Main {
public static void main(String[] args) {
try {
String url = "https://spacemapper.cn/cgi/orbital/aoe/list?catId=25590&channel=INTERNATIONAL&format=JSON";
URL obj = new URL(url);
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
con.setRequestProperty("Authorization", "Bearer YOUR_API_TOKEN");
BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
} catch (Exception e) {
e.printStackTrace();
}
}
}
<php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://spacemapper.cn/cgi/orbital/aoe/list?catId=25590&channel=INTERNATIONAL&format=JSON");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Authorization: Bearer YOUR_API_TOKEN"));
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
const axios = require('axios');
axios.get('https://spacemapper.cn/cgi/orbital/aoe/list', {
headers: {
'Authorization': 'Bearer YOUR_API_TOKEN'
},
params: {
catId: 25590,
channel: 'INTERNATIONAL',
format:JSON,
}
}).then(response => {
console.log(response.data);
}).catch(error => {
console.error(error);
});
using System;
using System.Net.Http;
using System.Threading.Tasks;
class Program{
static async Task Main(string[] args){
using (HttpClient client = new HttpClient()){
client.DefaultRequestHeaders.Add("Authorization", "Bearer YOUR_API_TOKEN");
string url = "https://spacemapper.cn/cgi/orbital/aoe/list?catId=25590&channel=INTERNATIONAL&format=JSON";
HttpResponseMessage response = await client.GetAsync(url);
string responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);
}
}
}
#include <iostream>
#include <string>
#include <curl/curl.h>
size_t WriteCallback(void* contents, size_t size, size_t nmemb, void* userp) {
((std::string*)userp)->append((char*)contents, size * nmemb);
return size * nmemb;
}
int main() {
CURL* curl;
CURLcode res;
std::string readBuffer;
curl_global_init(CURL_GLOBAL_DEFAULT);
curl = curl_easy_init();
if (curl) {
// 构造URL
std::string url = "https://spacemapper.cn/cgi/orbital/aoe/list?catId=25590&channel=INTERNATIONAL&format=JSON";
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
// 设置HTTP头
struct curl_slist *headers = nullptr;
headers = curl_slist_append(headers, "Authorization: Bearer YOUR_API_TOKEN");
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
// 设置写回调和数据
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteCallback);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &readBuffer);
// 执行请求
res = curl_easy_perform(curl);
// 清理HTTP头链表
curl_slist_free_all(headers);
// 错误处理
if (res != CURLE_OK) {
std::cerr << "curl_easy_perform() failed: " << curl_easy_strerror(res) << std::endl;
} else {
std::cout << readBuffer << std::endl;
}
curl_easy_cleanup(curl);
}
curl_global_cleanup();
return 0;
}
7 * 24
多渠道服务支持
专业服务
云业务全流程支持
值得信赖
可以依赖的合作伙伴
专属贴身服务
1V1贴身服务,专属保障
建议反馈
优化建议反馈