curl 命令到 C# mbed API
curl commands to C# mbed API
谁能帮我把这个 curl 命令翻译成 C# https GET 请求?
curl -v -H 'Authorization: Bearer <your_access_key>' https://api.connector.mbed.com/endpoints/
试试这个:
WebClient client = new WebClient();
client.Headers.Add("Authorization", "Bearer <your_access_key>");
string response = client.DownloadString("https://api.connector.mbed.com/endpoints/");
谁能帮我把这个 curl 命令翻译成 C# https GET 请求?
curl -v -H 'Authorization: Bearer <your_access_key>' https://api.connector.mbed.com/endpoints/
试试这个:
WebClient client = new WebClient();
client.Headers.Add("Authorization", "Bearer <your_access_key>");
string response = client.DownloadString("https://api.connector.mbed.com/endpoints/");