Exemple #1
0
        /// <summary>
        /// Retrieves the information for the person currently logged in.
        /// </summary>
        /// <returns>The Person entity</returns>
        /// <code>
        ///     var service = RachioService.Create(new ServiceOptions { AccessToken = "{Your Access Token}" });
        ///     var person = service.Person();
        /// </code>
        public Person Person()
        {
            // person/info
            var current = _serviceProvider.GetAsync <Person>(PersonEntity, action: InfoAction).Result;

            return(Person(current.Id));
        }