Method: geoTiff.get

按照圖片 ID 傳回圖片。

HTTP 要求

GET https://solar.googleapis.com/v1/geoTiff:get

這個網址使用 gRPC 轉碼語法。

查詢參數

參數
id

string

必要欄位。請求的資產 ID。

要求主體

要求主體必須為空白。

回應主體

用於表示任何 HTTP 主體的訊息;只能用於無法以 JSON 表示的酬載格式,例如未經處理的二進位檔或 HTML 網頁。

這個訊息可以用於要求及回應中的串流和非串流 API 方法。

這個訊息可以當做頂層要求欄位;想從網址或 HTTP 範本中將參數擷取至要求欄位,同時又想存取未經處理的 HTTP 主體時,這個做法就非常便利。

示例:

message GetResourceRequest {
  // A unique request id.
  string request_id = 1;

  // The raw HTTP body is bound to this field.
  google.api.HttpBody http_body = 2;

}

service ResourceService {
  rpc GetResource(GetResourceRequest)
    returns (google.api.HttpBody);
  rpc UpdateResource(google.api.HttpBody)
    returns (google.protobuf.Empty);

}

串流方法範例:

service CaldavService {
  rpc GetCalendar(stream google.api.HttpBody)
    returns (stream google.api.HttpBody);
  rpc UpdateCalendar(stream google.api.HttpBody)
    returns (stream google.api.HttpBody);

}

使用這個類型只會改變要求和回應主體的處理方式,所有其他功能的運作方式皆維持不變。

如果成功,回應為一般 HTTP 回應,其格式由 方法定義。

JSON 表示法
{
  "contentType": string,
  "data": string,
  "extensions": [
    {
      "@type": string,
      field1: ...,
      ...
    }
  ]
}
欄位
contentType

string

指定主體內容類型的 HTTP Content-Type 標頭值。

data

string (bytes format)

做為原始二進位檔的 HTTP 要求/回應主體。

Base64 編碼的字串。

extensions[]

object

應用程式專屬回應中繼資料。必須在串流 API 的第一個回應中設定。

包含任意類型欄位的物件。額外的 "@type" 欄位則包含能辨識類型的 URI。例如:{ "id": 1234, "@type": "types.example.com/standard/id" }.

授權範圍

需要下列 OAuth 範圍:

  • https://www.googleapis.com/auth/cloud-platform