private static async Task GetLongToken() { var appId = _configuration["AppId"]; var appSecret = _configuration["AppSecret"]; var tokenObj = await _userApiService.GetLongToken(appId, appSecret, UserToken); var json = JsonConvert.SerializeObject(tokenObj, Formatting.Indented); }