Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15057

Can someone convert this small python code to vb.net

$
0
0
Pip install python-socketio

Access token generation:

import base64
sample_string = 'your_consumer_key:your_consumer_secret'
sample_string_bytes = sample_string.encode("ascii")
base64_bytes = base64.b64encode(sample_string_bytes)
base64_string = base64_bytes.decode("ascii")
import requests
response=requests.post('https://wstreamer.kotaksecurities.com/feed/auth/token', data= {"authentication":base64_string})
print(response.json())


So we have base64.Encode and then bytes.deocde

Can some help to convert this into vb.net

Thanks in advance

Viewing all articles
Browse latest Browse all 15057

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>