2022-09-08 08:04:32 -07:00

21 lines
529 B
C#

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