/// <summary>
        /// Creates an API object for read/write API access with a custom "media delivery" format.
        /// </summary>
        /// <param name="readToken">The authentication token provided to authorize read access to the Media APIs.</param>
        /// <param name="writeToken">The authentication token provided to authorize write access to the Media APIs.</param>
        /// <param name="mediaDelivery">The format for media delivery. Specify "http" to retrieve URLs for downloading 
        /// audio & video files, rather than streaming them.</param>
        /// <returns>A configured BrightcoveApi object</returns>
        public static BrightcoveApi CreateApi(string readToken, string writeToken, string mediaDelivery)
        {
            BrightcoveApiConfig apiConfig = new BrightcoveApiConfig();
            apiConfig.ReadToken = readToken;
            apiConfig.WriteToken = writeToken;
            if (!String.IsNullOrEmpty(mediaDelivery))
            {
                apiConfig.MediaDelivery = mediaDelivery;
            }

            BrightcoveApiConnector apiConnector = new BrightcoveApiConnector(apiConfig);
            return new BrightcoveApi(apiConnector);
        }
        /// <summary>
        /// Creates an API object for read/write API access for a specific region and with a custom "media delivery" format.
        /// </summary>
        /// <param name="readToken">The authentication token provided to authorize read access to the Media APIs.</param>
        /// <param name="writeToken">The authentication token provided to authorize write access to the Media APIs.</param>
        /// <param name="mediaDelivery">The format for media delivery. Specify "http" to retrieve URLs for downloading
        /// audio &amp; video files, rather than streaming them.</param>
        /// <param name="region">The region of the video publishing.</param>
        /// <returns>A configured BrightcoveApi object</returns>
        public static BrightcoveApi CreateApi(string readToken, string writeToken, string mediaDelivery, BrightcoveRegion region)
        {
            BrightcoveApiConfig apiConfig = new BrightcoveApiConfig(readToken, writeToken, region);

            if (!String.IsNullOrEmpty(mediaDelivery))
            {
                apiConfig.MediaDelivery = mediaDelivery;
            }

            BrightcoveApiConnector apiConnector = new BrightcoveApiConnector(apiConfig);

            return(new BrightcoveApi(apiConnector));
        }