using System; using System.Threading.Tasks; namespace LineMessaging { public partial class LineMessagingClient { private const string ProfileApiPath = "/v2/bot/profile/{0}"; public async Task GetProfile(string userId) { if (string.IsNullOrEmpty(userId)) { throw new ArgumentException($"{nameof(userId)} is null or empty."); } return await Get(string.Format(ProfileApiPath, userId)); } } }