元編程參考文件

Web API 客戶端

30 個節點

本頁內容 30

接受型別

函數

此節點沒有文件說明。

簽名
接受型別(型別: MIMETypeNames.SupportedContentType) -> 文字到文字的字典
Dictionary<string, string> Accepts(MIMETypeNames.SupportedContentType type = SupportedContentType.ApplicationJson)

參數

名稱型別預設值說明
型別MIMETypeNames.SupportedContentTypeapplication/json

返回

結果文字到文字的字典
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Web API 客戶端
所屬包
網路應用

組裝標頭

函數

此節點沒有文件說明。

簽名
組裝標頭(部件: 文字到文字的字典陣列) -> 文字到文字的字典
Dictionary<string, string> AssembleHeader(params Dictionary<string, string>[] parts)

參數

名稱型別預設值說明
部件文字到文字的字典陣列—

返回

結果文字到文字的字典
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Web API 客戶端
所屬包
網路應用

持有者令牌

函數

此節點沒有文件說明。

簽名
持有者令牌(令牌: 文字) -> 文字到文字的字典
Dictionary<string, string> BearerToken(string token)

參數

名稱型別預設值說明
令牌文字—

返回

結果文字到文字的字典
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Web API 客戶端
所屬包
網路應用

建立參數

函數

此節點沒有文件說明。

簽名
建立參數(文字: 文字) -> 文字到文字的字典
Dictionary<string, string> CreateParameters(string text)

參數

名稱型別預設值說明
文字文字—

返回

結果文字到文字的字典
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Web API 客戶端
所屬包
網路應用

自訂 API 金鑰

函數

此節點沒有文件說明。

簽名
自訂 API 金鑰(鍵: 文字, 值: 文字) -> 文字到文字的字典
Dictionary<string, string> CustomAPIKey(
    string key,
    string value)

參數

名稱型別預設值說明
鍵文字—
值文字—

返回

結果文字到文字的字典
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Web API 客戶端
所屬包
網路應用

自訂標頭

函數

此節點沒有文件說明。

簽名
自訂標頭(鍵: 文字, 值: 文字) -> 文字到文字的字典
Dictionary<string, string> CustomHeader(
    string key,
    string value)

參數

名稱型別預設值說明
鍵文字—
值文字—

返回

結果文字到文字的字典
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Web API 客戶端
所屬包
網路應用

下載位元組內容

函數

此節點沒有文件說明。

簽名
下載位元組內容(網址: 文字) -> 位元組陣列
byte[] DownloadBytesContent(string url)

參數

名稱型別預設值說明
網址文字—

返回

結果位元組陣列
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Web API 客戶端
所屬包
網路應用

下載檔案

函數

此節點沒有文件說明。

簽名
下載檔案(網址: 文字, 輸出路徑: 文字)
void DownloadFile(string url, string outputPath)

參數

名稱型別預設值說明
網址文字—
輸出路徑文字—
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Web API 客戶端
所屬包
網路應用

下載影像內容

函數

此節點沒有文件說明。

簽名
下載影像內容(網址: 文字) -> Pixel Image
PixelImage DownloadImageContent(string url)

參數

名稱型別預設值說明
網址文字—

返回

結果Pixel Image
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Web API 客戶端
所屬包
網路應用

下載文字內容

函數

此節點沒有文件說明。

簽名
下載文字內容(網址: 文字) -> 文字
string DownloadTextContent(string url)

參數

名稱型別預設值說明
網址文字—

返回

結果文字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Web API 客戶端
所屬包
網路應用

生成 C# 程式碼

函數

此節點沒有文件說明。

簽名
生成 C# 程式碼 -> 文字
    方法: WebAPIClient.RequestMethod
    網址: 文字
    標頭: 文字到文字的字典陣列
    正文: 文字
    正文型別: WebAPIClient.ContentType
string GenerateCSharp(
    WebAPIClient.RequestMethod method,
    string url,
    Dictionary<string, string>[] headers,
    string body = "",
    WebAPIClient.ContentType bodyType = ContentType.Json)

參數

名稱型別預設值說明
方法WebAPIClient.RequestMethod—
網址文字—
標頭文字到文字的字典陣列—
正文文字—
正文型別WebAPIClient.ContentTypeJSON

返回

結果文字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Web API 客戶端
所屬包
網路應用

生成 curl 命令

函數

此節點沒有文件說明。

簽名
生成 curl 命令 -> 文字
    方法: WebAPIClient.RequestMethod
    網址: 文字
    標頭: 文字到文字的字典陣列
    正文: 文字
    正文型別: WebAPIClient.ContentType
string GenerateCurl(
    WebAPIClient.RequestMethod method,
    string url,
    Dictionary<string, string>[] headers,
    string body = "",
    WebAPIClient.ContentType bodyType = ContentType.Json)

參數

名稱型別預設值說明
方法WebAPIClient.RequestMethod—
網址文字—
標頭文字到文字的字典陣列—
正文文字—
正文型別WebAPIClient.ContentTypeJSON

返回

結果文字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Web API 客戶端
所屬包
網路應用

生成 JavaScript 程式碼

函數

此節點沒有文件說明。

簽名
生成 JavaScript 程式碼 -> 文字
    方法: WebAPIClient.RequestMethod
    網址: 文字
    標頭: 文字到文字的字典陣列
    正文: 文字
    正文型別: WebAPIClient.ContentType
string GenerateJavascript(
    WebAPIClient.RequestMethod method,
    string url,
    Dictionary<string, string>[] headers,
    string body = "",
    WebAPIClient.ContentType bodyType = ContentType.Json)

參數

名稱型別預設值說明
方法WebAPIClient.RequestMethod—
網址文字—
標頭文字到文字的字典陣列—
正文文字—
正文型別WebAPIClient.ContentTypeJSON

返回

結果文字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Web API 客戶端
所屬包
網路應用

生成 Python 程式碼

函數

此節點沒有文件說明。

簽名
生成 Python 程式碼 -> 文字
    方法: WebAPIClient.RequestMethod
    網址: 文字
    標頭: 文字到文字的字典陣列
    正文: 文字
    正文型別: WebAPIClient.ContentType
string GeneratePython(
    WebAPIClient.RequestMethod method,
    string url,
    Dictionary<string, string>[] headers,
    string body = "",
    WebAPIClient.ContentType bodyType = ContentType.Json)

參數

名稱型別預設值說明
方法WebAPIClient.RequestMethod—
網址文字—
標頭文字到文字的字典陣列—
正文文字—
正文型別WebAPIClient.ContentTypeJSON

返回

結果文字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Web API 客戶端
所屬包
網路應用

取得響應

函數

此節點沒有文件說明。

簽名
取得響應 -> WebAPIClient.RESTReponse
    網址: 文字
    參數: 文字到文字的字典
    正文: 文字
    標頭: 文字到文字的字典
WebAPIClient.RESTReponse GetResponse(
    string url,
    Dictionary<string, string> parameters,
    string body,
    Dictionary<string, string> headers)

參數

名稱型別預設值說明
網址文字—
參數文字到文字的字典—
正文文字—
標頭文字到文字的字典—

返回

結果WebAPIClient.RESTReponse
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Web API 客戶端
所屬包
網路應用

取得文字

函數

此節點沒有文件說明。

過載 1/4

簽名
取得文字(網址: 文字) -> 文字
string GetText(string url)

參數

名稱型別預設值說明
網址文字—

返回

結果文字

過載 2/4

簽名
取得文字(網址: 文字, 參數: 文字) -> 文字
string GetText(string url, string parameters)

參數

名稱型別預設值說明
網址文字—
參數文字—

返回

結果文字

過載 3/4

簽名
取得文字(網址: 文字, 參數: 文字陣列) -> 文字
string GetText(string url, string[] parameters)

參數

名稱型別預設值說明
網址文字—
參數文字陣列—

返回

結果文字

過載 4/4

簽名
取得文字 -> 文字
    網址: 文字
    參數: 文字到文字的字典
    正文: 文字
    標頭: 文字到文字的字典
string GetText(
    string url,
    Dictionary<string, string> parameters,
    string body,
    Dictionary<string, string> headers)

參數

名稱型別預設值說明
網址文字—
參數文字到文字的字典—
正文文字—
標頭文字到文字的字典—

返回

結果文字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Web API 客戶端
所屬包
網路應用

按自訂媒體型別取得文字

函數

此節點沒有文件說明。

簽名
按自訂媒體型別取得文字(網址: 文字, 媒體型別: 文字) -> 文字
string GetTextCustomMedia(string url, string mediaType = "*/*")

參數

名稱型別預設值說明
網址文字—
媒體型別文字*/*

返回

結果文字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Web API 客戶端
所屬包
網路應用

生成網址

函數

此節點沒有文件說明。

簽名
生成網址(底數: 文字, 端點: 文字, 參數: 文字到文字的字典) -> 文字
string MakeURL(
    string base,
    string endpoint,
    Dictionary<string, string> paremters)

參數

名稱型別預設值說明
底數文字—
端點文字—
參數文字到文字的字典—

返回

結果文字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Web API 客戶端
所屬包
網路應用

提交

函數

此節點沒有文件說明。

過載 1/4

簽名
提交(網址: 文字) -> 文字
string Post(string url)

參數

名稱型別預設值說明
網址文字—

返回

結果文字

過載 2/4

簽名
提交(網址: 文字, 參數: 文字) -> 文字
string Post(string url, string parameters)

參數

名稱型別預設值說明
網址文字—
參數文字—

返回

結果文字

過載 3/4

簽名
提交(網址: 文字, 參數: 文字陣列) -> 文字
string Post(string url, string[] parameters)

參數

名稱型別預設值說明
網址文字—
參數文字陣列—

返回

結果文字

過載 4/4

簽名
提交 -> 文字
    網址: 文字
    參數: 文字到文字的字典
    正文: 文字
    標頭: 文字到文字的字典
string Post(
    string url,
    Dictionary<string, string> parameters,
    string body,
    Dictionary<string, string> headers)

參數

名稱型別預設值說明
網址文字—
參數文字到文字的字典—
正文文字—
標頭文字到文字的字典—

返回

結果文字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Web API 客戶端
所屬包
網路應用

查詢

函數

此節點沒有文件說明。

簽名
查詢(上一次結果: JSONPreview, 路徑: 文字) -> JSONPreview
JSONPreview Query(JSONPreview previous, string path)

參數

名稱型別預設值說明
上一次結果JSONPreview—
路徑文字—

返回

結果JSONPreview
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Web API 客戶端
所屬包
網路應用

傳送並檢視

函數

此節點沒有文件說明。

簽名
傳送並檢視 -> 文字
    方法: WebAPIClient.RequestMethod
    網址: 文字
    標頭: 文字到文字的字典陣列
    正文: 文字
    正文型別: WebAPIClient.ContentType
string SendAndInspect(
    WebAPIClient.RequestMethod method,
    string url,
    Dictionary<string, string>[] headers,
    string body = "",
    WebAPIClient.ContentType bodyType = ContentType.Json)

參數

名稱型別預設值說明
方法WebAPIClient.RequestMethod—
網址文字—
標頭文字到文字的字典陣列—
正文文字—
正文型別WebAPIClient.ContentTypeJSON

返回

結果文字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Web API 客戶端
所屬包
網路應用

傳送多部分表單請求

函數

此節點沒有文件說明。

簽名
傳送多部分表單請求 -> 位元組陣列
    網址: 文字
    表頭元素: 文字到文字的字典陣列
    表單欄位: IEnumerable<KeyValuePair<文字, 文字>>
    檔案: IEnumerable<WebAPIClient.FilePart>
byte[] SendMultipartFormRequest(
    string url,
    Dictionary<string, string>[] headerElements,
    IEnumerable<KeyValuePair<string, string>> formFields,
    IEnumerable<WebAPIClient.FilePart> files)

參數

名稱型別預設值說明
網址文字—
表頭元素文字到文字的字典陣列—
表單欄位IEnumerable<KeyValuePair<文字, 文字>>—
檔案IEnumerable<WebAPIClient.FilePart>—

返回

結果位元組陣列
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Web API 客戶端
所屬包
網路應用

傳送請求

函數

此節點沒有文件說明。

簽名
傳送請求 -> 位元組陣列
    方法: WebAPIClient.RequestMethod
    網址: 文字
    標頭: 文字到文字的字典陣列
    正文: 文字
    正文型別: WebAPIClient.ContentType
byte[] SendRequest(
    WebAPIClient.RequestMethod method,
    string url,
    Dictionary<string, string>[] headers,
    string body = "",
    WebAPIClient.ContentType bodyType = ContentType.Json)

參數

名稱型別預設值說明
方法WebAPIClient.RequestMethod—
網址文字—
標頭文字到文字的字典陣列—
正文文字—
正文型別WebAPIClient.ContentTypeJSON

返回

結果位元組陣列
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Web API 客戶端
所屬包
網路應用

壓力測試

函數

此節點沒有文件說明。

簽名
壓力測試 -> 文字
    重複: 整數
    方法: WebAPIClient.RequestMethod
    網址: 文字
    標頭: 文字到文字的字典陣列
    正文: 文字
    正文型別: WebAPIClient.ContentType
    並行數: 真否
string StressTest(
    int repeat,
    WebAPIClient.RequestMethod method,
    string url,
    Dictionary<string, string>[] headers,
    string body = "",
    WebAPIClient.ContentType bodyType = ContentType.Json,
    bool parallel = false)

參數

名稱型別預設值說明
重複整數—
方法WebAPIClient.RequestMethod—
網址文字—
標頭文字到文字的字典陣列—
正文文字—
正文型別WebAPIClient.ContentTypeJSON
並行數真否False

返回

結果文字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Web API 客戶端
所屬包
網路應用

使用者代理

函數

此節點沒有文件說明。

簽名
使用者代理(使用者代理: 文字) -> 文字到文字的字典
Dictionary<string, string> UserAgent(string agent)

參數

名稱型別預設值說明
使用者代理文字—

返回

結果文字到文字的字典
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Web API 客戶端
所屬包
網路應用

作為 HTML 頁面檢視

函數

此節點沒有文件說明。

簽名
作為 HTML 頁面檢視(資料: 位元組陣列, 格式: 真否) -> HTMLPreview
HTMLPreview ViewAsHTMLPage(byte[] data, bool formatting)

參數

名稱型別預設值說明
資料位元組陣列—
格式真否—

返回

結果HTMLPreview
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Web API 客戶端
所屬包
網路應用

作為 JSON 檢視

函數

此節點沒有文件說明。

簽名
作為 JSON 檢視(資料: 位元組陣列, 格式: 真否) -> JSONPreview
JSONPreview ViewAsJSON(byte[] data, bool formatting)

參數

名稱型別預設值說明
資料位元組陣列—
格式真否—

返回

結果JSONPreview
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Web API 客戶端
所屬包
網路應用

作為純文字檢視

函數

此節點沒有文件說明。

簽名
作為純文字檢視(資料: 位元組陣列) -> PlainTextPreview
PlainTextPreview ViewAsPlainText(byte[] data)

參數

名稱型別預設值說明
資料位元組陣列—

返回

結果PlainTextPreview
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Web API 客戶端
所屬包
網路應用

作為 PNG 影像檢視

函數

此節點沒有文件說明。

簽名
作為 PNG 影像檢視(資料: 位元組陣列) -> ImagePreview
ImagePreview ViewAsPNGImage(byte[] data)

參數

名稱型別預設值說明
資料位元組陣列—

返回

結果ImagePreview
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Web API 客戶端
所屬包
網路應用

作為網站檢視

函數

此節點沒有文件說明。

簽名
作為網站檢視(資料: 位元組陣列) -> WebsitePreview
WebsitePreview ViewAsWebsite(byte[] data)

參數

名稱型別預設值說明
資料位元組陣列—

返回

結果WebsitePreview
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Web API 客戶端
所屬包
網路應用