File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -123,7 +123,8 @@ def main():
123123 connection = Connection (
124124 identity = '*YOUR_GATEWAY_THREEMA_ID' ,
125125 secret = 'YOUR_GATEWAY_THREEMA_ID_SECRET' ,
126- key = 'private:YOUR_PRIVATE_KEY'
126+ key = 'private:YOUR_PRIVATE_KEY' ,
127+ verify_fingerprint = True ,
127128 )
128129 try :
129130 with connection :
Original file line number Diff line number Diff line change @@ -115,6 +115,7 @@ def main():
115115 identity = '*YOUR_GATEWAY_THREEMA_ID' ,
116116 secret = 'YOUR_GATEWAY_THREEMA_ID_SECRET' ,
117117 key = 'private:YOUR_PRIVATE_KEY' ,
118+ verify_fingerprint = True ,
118119 blocking = True ,
119120 )
120121 try :
Original file line number Diff line number Diff line change 1717
1818@asyncio .coroutine
1919def main ():
20- connection = Connection ('*YOUR_GATEWAY_THREEMA_ID' , 'YOUR_GATEWAY_THREEMA_ID_SECRET' )
20+ connection = Connection (
21+ identity = '*YOUR_GATEWAY_THREEMA_ID' ,
22+ secret = 'YOUR_GATEWAY_THREEMA_ID_SECRET' ,
23+ verify_fingerprint = True ,
24+ )
2125 try :
2226 with connection :
2327 print ((yield from connection .get_credits ()))
Original file line number Diff line number Diff line change 1515
1616def main ():
1717 connection = Connection (
18- blocking = True ,
1918 identity = '*YOUR_GATEWAY_THREEMA_ID' ,
2019 secret = 'YOUR_GATEWAY_THREEMA_ID_SECRET' ,
20+ verify_fingerprint = True ,
21+ blocking = True ,
2122 )
2223 try :
2324 with connection :
Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ def main():
5959 connection = Connection (
6060 identity = '*YOUR_GATEWAY_THREEMA_ID' ,
6161 secret = 'YOUR_GATEWAY_THREEMA_ID_SECRET' ,
62+ verify_fingerprint = True ,
6263 )
6364 try :
6465 with connection :
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ def main():
5353 connection = Connection (
5454 identity = '*YOUR_GATEWAY_THREEMA_ID' ,
5555 secret = 'YOUR_GATEWAY_THREEMA_ID_SECRET' ,
56+ verify_fingerprint = True ,
5657 blocking = True ,
5758 )
5859 try :
You can’t perform that action at this time.
0 commit comments