Converting Curl to vb.net -


im trying convert curl vb.net code. access gumroad license api. appreciated.

 curl https://api.gumroad.com/v2/licenses/verify   \ -d "product_permalink=qmgy"   \ -d "license_key=your_customers_license_key"   \ -x post 

response

    {   "success": true,   "uses": 3,   "purchase": {     "id": "omyg5dpledsbykghsneudq==",     "product_name": "licenses demo product",     "created_at": "2014-04-05t00:21:56z",     "full_name": "maxwell elliott",     "variants": "",     "refunded": false,     # purchase refunded, non-subscription product     "chargebacked": false,     # purchase refunded, non-subscription product     "subscription_cancelled_at": null,     # subscription cancelled,     subscription product     "subscription_failed_at": null,     # unable charge subscriber's card     "custom_fields": [],     "email": "maxwell@gumroad.com"   } } 

and need software run if response "success" true

dim web new net.webclient web.headers.add(net.httprequestheader.contenttype, "application/x-www-form-urlencoded") dim data = "product_permalink=ftbz&license_key=11bb81e6-762g4853-967a7cd1-20630734" dim response = web.uploadstring("https://api.gumroad.com/v2/licenses/verify", data) 

Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -