PC2Paper provide two letter sending API's and one Letter Pricing API (please see below) PC2Papers API Letter Sending InterfacesPC2Paper has two letter sending API interfaces available. One interface is a simple back end form post interface that only accepts text input (our most popular) and the other is a backend XML RPC interface that only accepts PDF and MS Word documents. Which of these interfaces you use is based on your requirement. PC2Paper API Compare| | Form Post Interface | XML Interface |
|---|
| Supports PDF Documents | No | Yes | | Supports Free Text | Yes | No | | Enables Print Type selection | Yes | Yes | | Enable Postage Type selection | Yes | Yes | | Code Available | Yes | Yes | | Enables formatted HTML | Yes | No | Form Post Interface The Form Post Interface (FPI) is our most popular because of how simple it is to setup. If you have ever created a backend form interface to integrate with services such as PayPal and World Pay then you already have most of the skills you need to use the FPI. Simply speaking the FPI accepts a form post from either a normal webpage or a back end server to authenticate you, you provide your PC2Paper username and password to it and that is how the site knows who to bill the cost of the letter to. To use the interface and to find out more you can download:- - PC2Paper API document - This document explains and contains examples of PC2Papers API's
- Country.csv - This CSV file contains a list of countries with PC2Papers ID for that country.
XML RPC Interface The PC2Paper XML RPC Interface is a bit more advanced than the form post interface and enables the sending of PDF and Word documents from server to server or desktop application to PC2Paper. To find out more: Code Examples - RESTExample.zip - This is a C# .NET example of how to use the XML RPC interface.
Letter Pricing APIPC2Paper provide an XML based interface that enables you to work out the price of your letter before sending it. This is useful for websites that resell our service and would like to know how much to bill the customers before actually sending the letter. To get started you can download the documentation for our interface here. You can also download the country code file, a csv you will need to lookup country codes. If you require any further help with these interfaces, please do not hesitate to contact us further.
|