简体   繁体   English

在wp7上使用网站的API

[英]Using API of a website on wp7

I want to create an wp7 application that converts the URL to PDF document. 我想创建一个将URL转换为PDF文档的wp7应用程序。 I want to use the joliprint.com service for my app. 我想为我的应用程序使用joliprint.com服务。 I created a textbox( named as textBox1 )for URL's and button( named as button1 )for submitting the URL's. 我创建了一个用于URL的文本框( 名为textBox1 )和一个用于提交URL的按钮( 名为button1 )。 Can anybody help me with this or can anybody provide me some samples or examples for this. 有人可以帮助我吗,或者可以为我提供一些样本或示例。 Thanks in advance for your help! 在此先感谢您的帮助!

Run Fiddler and manually make a request using your browser. 运行Fiddler并使用浏览器手动发出请求。 From the information that Fiddler gathers, you should be able to identify the query format. 从Fiddler收集的信息中,您应该能够识别查询格式。 You are looking for the HTTP verb (GET, etc.) and the URL format (http://website.com/process.aspx?url=URLSUBMITTED). 您正在寻找HTTP动词(GET等)和URL格式(http://website.com/process.aspx?url=URLSUBMITTED)。 Once you have this, you can make an HTTPWebRequest from your app. 一旦有了这个,就可以从您的应用程序发出一个HTTPWebRequest。

You should probably make sure that what you are doing isn't against the terms of use of the website. 您可能应该确保您在做什么并不违反网站的使用条款。 There may be a reason they don't have a published API... Asking permission is best, especially if the you expect to be making lots of calls to this site. 他们可能没有公开的API,这可能是有原因的……寻求权限是最好的,尤其是如果您希望对该网站进行大量调用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM