Hello
I need please some help to implement the below "Python" code in MATLAB.
I want to be able to perform a request to identify if a key exists and if it is valid through connecting to a certain website
%% Python code ================================
import requestsimport jsondata = requests.post("https://api.somewebsite/accounts/CC/licenses/actions/validate-key", headers={ "Content-Type": "application/vnd.api+json", "Accept": "application/vnd.api+json" }, data=json.dumps({ "meta": { "key": "xxxxxxxxxxxxxxxxxxx" } })).json()if data["meta"]["valid"]:# Do somethingelse:# Do something else%% ================================
many thanks
Mohammad
Best Answer