使用 WebRequest 发布 [英] Post with WebRequest

查看:16
本文介绍了使用 WebRequest 发布的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试向 google 发帖,以便我可以登录 Google 阅读器并下载订阅列表,但我找不到在 windows 7 手机 sdk 中发帖到 google 的方法,有没有人有如何做的示例这是?

I am trying to post to google so I can log into Google Reader and download subscription list, but I am unable to find a way to post to google in the windows 7 phone sdk, does anyone have an example on how to do this?

*抱歉不是很清楚,我正在尝试使用 POST 方法,将电子邮件和密码提交给 google 登录并检索 sid.我已经使用了 WebClient 和 HttpWebRequest,但是我看到的所有示例都用于发送发布数据,api 调用不在 windows 7 手机 sdk 中.

* Sorry wasn't very clear I am trying use the POST method, to submit an email and password to google login and retrieve a sid. I have used WebClient and HttpWebRequest but all the examples I have seen to send post data, the api calls are not in the windows 7 phone sdk.

推荐答案

您是否尝试过将 RESTSharp 用于您的 Windows电话7项目?最新版本支持 Windows Phone 7,我在使用流行的 REST API 时没有遇到任何问题.在您尝试使用 Google Reader API 的特定情况下,Luke Lowry 的这篇文章 可能会有所帮助.

Have you tried using RESTSharp for your Windows Phone 7 project? The latest release supports Windows Phone 7 and I have had no issues working with popular REST APIs with it. In your particular case where you are trying to use the Google Reader API, this article by Luke Lowry can possibly help.

这篇关于使用 WebRequest 发布的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆