QueekyPaint API

poster

Use our new API to add QueekyPaint to your personal blog or website.
Setup is free and easy, all you need is a Queeky account.

New You can now use our API to save drawings created with QueekyPaint directly on your website using PHP

Image API

To edit any image out of the web, you may want to use our simple image API: http://www.queeky.com/app/?image=<URL_to_image>


1. Embed QueekyPaint on your website

The iframe must be located on the domain defined in your API settings

<iframe width="100%" height="100%" frameborder="0" border="0" src="http://www.queeky.com/app?apikey=<YOUR_API_KEY>"></iframe>

Or, if you want to edit an image from your server

<iframe ... src="http://www.queeky.com/app?apikey=<YOUR_API_KEY>&image=<URL_to_image>"></iframe>

2. Install PHP script (optional)

You may want to use this PHP boilerplate as a base to build your own. Only needed if you use your own submit URL. You need a crossomain.xml to allow queeky.com to post to your server.

<?php

$destination = "./img/source.jpg"; /* path to store jpg */
$destination_qky = "./img/source.qky"; /* path to store qky */

if (isset($_FILES['Filedata'])) /* try to upload .qky if available*/
{
    @move_uploaded_file($_FILES['Filedata']['tmp_name'], $destination_qky);
}

if(move_uploaded_file($_FILES['Filedata2']['tmp_name'], $destination))
{
    /* notify app that saving is done */
    print "done=ok&message=Your drawing has been saved to ".$destination;
} else {
    /* notify app there was an error */
    print "error";
}

?>

3. Setup crossdomain.xml (optional)

If you use a Submit Url, you have to setup a file called "crossdomain.xml" in order to allow QueekyPaint to post to your website. If you have no crossdomain file yet, you can copy/paste the following code in an empty file called "crossdomain.xml", located at the root directory of your website.

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
	<allow-access-from domain="www.queeky.com" />
	<site-control permitted-cross-domain-policies="all" />
</cross-domain-policy>

API Terms

By using our API you agree with our terms of use

1 Comment

Comments

kutedymples's picture
Intersting

I don't really have a website or a blog. I always use my account here when posting a link to my blog or website. I'd like to actually make/start one soon but I have no clue how to even go about that let alone add queeky. When I eventually start my own website I will be back to get the information that I need to add queeky. Thanks!