Files
2023-03-13 15:00:34 +08:00

39 lines
769 B
C#

using JNPF.Extras.CollectiveOAuth.Enums;
namespace JNPF.Extras.CollectiveOAuth.Config;
/// <summary>
/// 今日头条.
/// </summary>
public class ToutiaoAuthSource : IAuthSource
{
public string authorize()
{
return "https://open.snssdk.com/auth/authorize";
}
public string accessToken()
{
return "https://open.snssdk.com/auth/token";
}
public string userInfo()
{
return "https://open.snssdk.com/data/user_profile";
}
public string revoke()
{
throw new System.NotImplementedException();
}
public string refresh()
{
throw new System.NotImplementedException();
}
public string getName()
{
return DefaultAuthSourceEnum.TOUTIAO.ToString();
}
}