Connect to Microsoft Azure Machine Learning Studio Api with ruby instead of python use net/http gem instead of urllib2
问题 I need to connect to the Microsoft Azure Machine Learning Studio Api with ruby instead of python. Can someone help me translate this python code into ruby using the net/http gem. import urllib2 # If you are using Python 3+, import urllib instead of urllib2 import json data = { "Id": "score00001", "Instance": { "FeatureVector": { "value_1"= "1", "value_2"= "2", "value_3"= "3", "value_4"= "4", "value_5"= "5", "value_6"= "6", "value_7"= "7", "value_8"= "8", "value_9"= "9", "value_10"= "10", },