summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/break.py29
-rw-r--r--examples/grid.sh2
-rw-r--r--examples/jsonp.sh2
-rw-r--r--examples/test.sh2
4 files changed, 0 insertions, 35 deletions
diff --git a/examples/break.py b/examples/break.py
deleted file mode 100644
index 91d888d..0000000
--- a/examples/break.py
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/usr/bin/python2.7
-import requests, sys
-import simplejson as json
-URL_BASE = "http://127.0.0.1:8080"
-
-example_params = {
- "url" : "http://i.asdf.us/im/de/HolyMountain2_1322275112_seamonkey.gif",
- "breaktype" : "RGB_WASH",
- "finalformat" : "png",
- "breakmode" : "extreme",
- "breakangle" : "10",
- "username" : "donkey",
- "expanded" : "false"
-}
-
-def post_request(url, data):
- r = requests.post(url, data=data)
- if r.status_code != 200:
- sys.stderr.write("ERROR: %s\n" % r.status_code)
- sys.stderr.write("REASON: %s\n" % r.reason)
- sys.exit(1)
- return json.loads(r.text)
-
-def test(api_name, params):
- return post_request("%s/%s" % (URL_BASE, api_name), params)
-
-if __name__ == "__main__":
- print test("PbBreak", example_params)
-
diff --git a/examples/grid.sh b/examples/grid.sh
deleted file mode 100644
index d6d76e4..0000000
--- a/examples/grid.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-#curl localhost:8999/im/api/imgrid -H 'Cookie: imname=pepper' -H 'Origin: http://asdf.us' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: en-US,en;q=0.8' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.125 Safari/537.36' -H 'Content-Type: application/x-www-form-urlencoded' -H 'Accept: */*' -H 'Referer: http://asdf.us/imgrid/' -H 'X-Requested-With: XMLHttpRequest' -H 'Connection: keep-alive' --data 'width=700&height=500&linethickness=1&opacity=1&linecolor=MISTYROSE4&spacing=10&vlines=false&hlines=false&shadow=false&bgimage=&bgcolor=transparent&imageinstead=&planebgcolor=transparent&skycolor=none&planebgimage=&transition=background&swing=0&tilt=0&roll=0&zoom=0&trim=false&format=&username=pepper' --compressed
-curl http://asdf.us/im/api/imgrid -H 'Cookie: imname=pepper' -H 'Origin: http://asdf.us' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: en-US,en;q=0.8' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.125 Safari/537.36' -H 'Content-Type: application/x-www-form-urlencoded' -H 'Accept: */*' -H 'Referer: http://asdf.us/imgrid/' -H 'X-Requested-With: XMLHttpRequest' -H 'Connection: keep-alive' --data 'width=700&height=500&linethickness=1&opacity=1&linecolor=MISTYROSE4&spacing=10&vlines=false&hlines=false&shadow=false&bgimage=&bgcolor=transparent&imageinstead=&planebgcolor=transparent&skycolor=none&planebgimage=&transition=background&swing=0&tilt=0&roll=0&zoom=0&trim=false&format=&username=pepper' --compressed
diff --git a/examples/jsonp.sh b/examples/jsonp.sh
deleted file mode 100644
index 8539853..0000000
--- a/examples/jsonp.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/bash
-curl 'http://asdf.us/cgi-bin/im/generate?callback=jsonp1431361693303&url=http%3A%2F%2Fwww.maskworld.com%2Fpix%2Fmasks%2F025-party-face-gesicht-fasching-karneval-carnival-halloween-latex-film-movie-larp-theatre-theater-horror-rubber-gummi-mask-masks-maske-masken.jpg&name=test&transparent=true&fuzz=5' -H 'Accept-Encoding: gzip, deflate, sdch' -H 'Accept-Language: en-US,en;q=0.8' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36' -H 'Accept: */*' -H 'Referer: http://carbonpictures.com/pb/' -H 'Cookie: imname=yo' -H 'Connection: keep-alive' --compressed
diff --git a/examples/test.sh b/examples/test.sh
deleted file mode 100644
index 860fc0f..0000000
--- a/examples/test.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-#curl localhost:8999/test
-curl http://asdf.us/test