From 021842ec42b991e7a641ae26862d77b324ea05db Mon Sep 17 00:00:00 2001 From: Pepper Date: Wed, 4 Mar 2015 15:57:53 -0500 Subject: started oop code --- test2.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test2.py (limited to 'test2.py') diff --git a/test2.py b/test2.py new file mode 100644 index 0000000..4754b1c --- /dev/null +++ b/test2.py @@ -0,0 +1,13 @@ +#!/usr/bin/python2.7 +from Pb_Api.ImPattern import Pb_Api_ImPattern + +p = Pb_Api_ImPattern() +params = p.params() +params.param("image_url").value("http://hello") +pprint.pprint(params.as_hash()) +# for now +#and then to call it, just below? yes are the params set, or do I pass them in? + +#p.call(params) #something like this? +#and inside .call() you need to use .as_hash() to pass to post request. ok good +#alright I'll test this on my own time. sort of a lot. Thanks again no problems -- cgit v1.2.3-70-g09d2