Send something to Andrew's printer!


Want to be cool?

YES!!!!!!!!!

Here's how to use the API!

  1. Get an API key here!
  2. Send a POST request to
    http://printer.andrew.gr/api.php
    with fields
    key
    and
    message
  3. That's it!!!!!!

Example in Python:

from urllib.parse import urlencode
from urllib.request import Request, urlopen

url = 'http://printer.andrew.gr/api.php' # Set destination URL here
post_fields = {'key': 'tSz692dMZdcHCSZLBuzTAXVlaVAM9HWu6t', 'message': 'Hello!!!\nI love you very much\n\n<3<3<3'}

request = Request(url, urlencode(post_fields).encode())
json = urlopen(request).read().decode()
print(json)