我尝试使用HttpWebRequest将数据发布到以下内容。但是我不确定以下任务的URI应该是什么
POST /v1/session
Host: developer.messenger.yahooapis.com
Authorization: < Standard OAuth credentials >
Content-Type: application/json;charset=utf-8
Content-Length: 38
{
"presenceState" : 0,
"presenceMessage" : "I am now logged in"
}
我有类似的东西
string uri = "https://developer.messenger.yahooapis.com/v1/session ";
HttpWebRequest request = (HttpWebRequest) WebRequest.Create(uri);
这对于所需的帖子是否正确。