public Experiment GetExperimentById(WorkspaceSetting setting, string experimentId, out string rawJson)
{
ValidateWorkspaceSetting(setting);
Util.AuthorizationToken = setting.AuthorizationToken;
rawJson = string.Empty;
string queryUrl = StudioApi + string.Format("workspaces/{0}/experiments/{1}", setting.WorkspaceId, experimentId);
HttpResult hr = Util.HttpGet(queryUrl).Result;
if (hr.IsSuccess)
{
rawJson = hr.Payload;
Experiment exp = jss.Deserialize<Experiment>(hr.Payload);
return exp;
}
else
throw new AmlRestApiException(hr);
}