1
我試圖通過C#發送HTTP獲取請求與內容類型application/json。但我不知道如何創建這個請求。 我的HTTP請求是這樣的:發送Http請求與內容類型應用Json C#
POST /messaging/registrations/(REGISTRATION_ID_FOR_DESTINATION_APP_INSTANCE)/messages HTTP/1.1
Host: api.amazon.com
Authorization: Bearer (MY_ACCESS_TOKEN)
Content-Type: application/json
X-Amzn-Type-Version: [email protected]
Accept: application/json
X-Amzn-Accept-Type: [email protected]
{
"data":{"key1":"value1","key2":"value2"},
"consolidationKey":"Some Key",
"expiresAfter":86400
}
有人能幫助我,請。 認爲所有。