public async Task <LiveEventRestObject> GetLiveEventAsync(string liveEventName) { string URL = GenerateApiUrl(liveEventApiUrl, liveEventName); string responseContent = await GetObjectContentAsync(URL); return(LiveEventRestObject.FromJson(responseContent)); }
public async Task <string> CreateLiveEventAsync(LiveEventRestObject liveEventSettings, bool startLiveEventNow) { string URL = GenerateApiUrl(liveEventApiUrl, liveEventSettings.Name) + string.Format("&autoStart={0}", startLiveEventNow.ToString()); string responseContent = await CreateObjectAsync(URL, liveEventSettings.ToJson()); return(responseContent); }