Python Foreman 0.1.2 api connection issue

I am trying to use https://pypi.python.org/pypi/python-foreman this
i have installed python 3.4 i have installed python 3.4 on my system which
one is compatible with this api

but each time i try to access using below code

>>> from getpass import getpass>>> from foreman.client import Foreman>>> f = Foreman('http://myforeman.server:3000', ('myuser', getpass()))
code i have got from http://pythonhosted.org/python-foreman/basic.html

when i run the script gave me this error
WARNING:root:Api v1 will not be the default in the next version, if you
still want to use it, change the call to explicitly ask for it. Though we
recommend using the new and improved version 2

Not works and making connection with foreman can some one please help me
out with this problem i am new to this

Sounds like you may have to set the API version you want to use. The
foreman project does not build or maintain this Python library for
interacting with Foreman so I would reach out to that project directly to
ask the question [1].

[1] https://github.com/david-caro/python-foreman

··· On Fri, Aug 26, 2016 at 1:08 PM, junaid ali wrote:

Not works and making connection with foreman can some one please help me
out with this problem i am new to this


You received this message because you are subscribed to the Google Groups
"foreman-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Eric D. Helms
Red Hat Engineering
Ph.D. Student - North Carolina State University

what does that mean?
what API Version are using
?

I have tried to define api version in my code blow ways but not working can
you help me out ???
f = Foreman('https://xxx.xxx.xx.xxx/api', ('Junaid', getpass()), 'v1')
f = Foreman('https://xxx.xxx.xx.xxx', ('Junaid', getpass()), 'version=1')
f = Foreman('https://xxx.xxx.xx.xxx:3000/api/v1', ('Junaid', getpass()))