以下のコードを使用して、Parse.com の Book クラスにアクセスします。
public void GetBook()
{
string RequestString = "https://api.parse.com/1/classes/Book";
string ApplicationId = "my Application ID";
string RestApiKey = "my REST API Key";
WebRequest webRequest = WebRequest.Create(RequestString);
NetworkCredential streetCred = new NetworkCredential(ApplicationId, RestApiKey);
webRequest.Credentials = streetCred;
webRequest.Method = "GET";
webRequest.Timeout = 100000;
HttpWebResponse b = (HttpWebResponse)webRequest.GetResponse();
}
これにより、常に 401 Unauthorized 応答が返されます。私は何を間違っていますか?