Tuesday
18Nov2008

Building Your First Application: Part 3 - Getting Information with PFQL

So you are now fully authenticated and have your session key set up. Now you probably want to use it for something useful. The Printfection API allows you to interact with the Printfection service in a number of different ways. You can create, edit and delete stores, images and products, as well, you can retrieve information from the service using the Printfection Query Language (PFQL).

If you know SQL, PFQL will be instantly familiar, if not, it is very simple to learn. PFQL allows you to construct a simple string that tells the API what information you want to retrieve. All data and information that you have access to is grouped in a table structure, with all information within that table being stored in rows of fields, just like a normal database.

Click to read more ...

Monday
17Nov2008

Building Your First Application: Part 2 - Authentication

Now that you have requested your API key, you need to go find it, set some extra details and start using it. Log on to your Printfection account and go to your API Key.From here, click on the edit settings link towards the top of the page. Now you can give your Application a name and edit any other details.

Some of these fields will only be relevant if you are building a public application for other people to use, such as the About Us page and Terms of Service page, however there is one very important field here that you need to complete, otherwise you will never get to the next step.

Click to read more ...

Sunday
16Nov2008

Building Your First Application: Part 1 - Setting Up

Before you can start writing your fantastic API code, you will first need to set up some information within the Printfection website to both identify yourself, and then to define how things are going to work with your application.

The first thing you will need is a Printfection user account. You don't need to have any stores or products set up at this stage, just an account. If you don't already have one, you can set up your account here. Its absolutely free.

Once you have confirmed your account details, or if you have already have an account, you need to begin setting up your API key. You can click here, or click on the big blue "Request API" button on the top right of the Printfection Developer Center.

From there, you will need to provide some information about you and your application.

Click to read more ...

Saturday
15Nov2008

Featured Developer: FACEinHOLE.com

FACEinHOLE.com, a fun website where visitors can use the advanced yet simple tools to composite their face into a number of different scenarios. Just like the old fun park boards that you stuck your head through, only this time its digital.

FACEinHOLE.com have chosen the Printfection Platform to add a new and exciting feature to their service. Thanks to their deep integration with the Printfection API, users can now not only see the image they create, but now they can order it on a shirt, fulfilled by Printfection.

FACEinHOLE uses flash to create the images and then uses the Printfection API to upload the image, create the product, add it to a shopping cart, and finally sending the vistor to checkout.

We think this is a really creative use of the API and look forward to more great things from FACEinHole.com.

Saturday
15Nov2008

Building your first Platform Application: Hello World

Hello World ImageIts customary in the development world to have your first tutorial print something simple, usually "Hello World" to the screen, console or browser. In our world, we can go one better.

Over the next few days, we will step you through the process of creating your first Printfection Platform application that will ultimately allow for uploading on an image onto a product, ready for purchase.

The series will follow the flow of a standard Platform application:

  • Creating your API key
  • Setting up your application information
  • Authenticating your application
  • Uploading an image
  • Creating the product
  • Adding to cart
  • Checking out

The examples will be posted in PHP, however are designed to illustrate a process that can be used in any development language.

See you tomorrow for Day 1: Getting Started.