File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,11 +44,13 @@ Please see [Examples](https://github.com/Mixnode/mixnode-py-sdk/blob/master/exam
4444
4545``` Python
4646
47- from mixnode import Mixnode
48-
49- client = Mixnode(" Your api key" )
50- query = " SELECT url, title from homepages LIMIT 10"
51- response = client.execute(query)
47+ from mixnode import Mixnode, MixnodeError
48+ try :
49+ query = " SELECT url, title from homepages LIMIT 10"
50+ response = Mixnode(" Your api key" ).execute(query)
51+ print (response)
52+ except MixnodeError as error:
53+ print (error)
5254
5355```
5456
Original file line number Diff line number Diff line change @@ -64,12 +64,13 @@ Quick Start
6464
6565.. code :: Python
6666
67-
68- from mixnode import Mixnode
69-
70- client = Mixnode(" Your api key" )
71- query = " SELECT url, title from homepages LIMIT 10"
72- response = client.execute(query)
67+ from mixnode import Mixnode, MixnodeError
68+ try :
69+ query = " SELECT url, title from homepages LIMIT 10"
70+ response = Mixnode(" Your API Key" ).execute(query)
71+ print (response)
72+ except MixnodeError as error:
73+ print (error)
7374
7475 Mixnode's execute functionality
7576^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Original file line number Diff line number Diff line change 1818# limitations under the License.
1919
2020
21- from mixnode import Mixnode
22- from mixnode .error import MixnodeError
23- import config
21+ from mixnode import Mixnode , MixnodeError
22+ import config
2423
2524try :
2625 client = Mixnode (config .MIXNODE_CONFIG ['api_key' ])
Original file line number Diff line number Diff line change 1818# limitations under the License.
1919
2020
21- from mixnode import Mixnode
22- from mixnode .error import MixnodeError
21+ from mixnode import Mixnode , MixnodeError
2322import config
2423
2524try :
Original file line number Diff line number Diff line change 1818# limitations under the License.
1919
2020
21- from mixnode import Mixnode
22- from mixnode .error import MixnodeError
21+ from mixnode import Mixnode , MixnodeError
2322import config
2423
2524try :
Original file line number Diff line number Diff line change 1818# limitations under the License.
1919
2020
21- from mixnode import Mixnode
22- from mixnode .error import MixnodeError
21+ from mixnode import Mixnode , MixnodeError
2322import config
2423
2524try :
Original file line number Diff line number Diff line change 1818# limitations under the License.
1919
2020
21- from mixnode import Mixnode
22- from mixnode .error import MixnodeError
21+ from mixnode import Mixnode , MixnodeError
2322import config
2423
2524try :
Original file line number Diff line number Diff line change 3030
3131__title__ = 'mixnode-py-sdk'
3232__author__ = 'Mixnode'
33- __version__ = '1.0.0 '
33+ __version__ = '1.0.1 '
3434__license__ = 'Apache 2.0'
3535
3636from .api_client import Mixnode
You can’t perform that action at this time.
0 commit comments