Exemplo n.º 1
0
        /// <summary>
        /// Retrievs a token from the token endpoint, which is passed along to any subsequent call. Don't reuse the token across multiple runs of
        /// your program as they expire.
        /// </summary>
        /// <param name="config"></param>
        /// <returns></returns>
        public ApiResponse GetToken(Configuration config = null)
        {
            Trace.WriteLine($"Starting {MethodBase.GetCurrentMethod().Name}");
            ITokenApi api    = new TokenApi(config);
            var       result = api.ApiTokenGet();

            Trace.WriteLine($"Ending {MethodBase.GetCurrentMethod().Name}");
            return(result);
        }